@@ -157,7 +157,7 @@ class TunnelCreateForm(TunnelForm):
157157 def __init__ (self , * args , initial = None , ** kwargs ):
158158 super ().__init__ (* args , initial = initial , ** kwargs )
159159
160- if get_field_value (self , 'termination1_type' ) == TunnelTerminationTypeChoices .TYPE_VIRUTALMACHINE :
160+ if get_field_value (self , 'termination1_type' ) == TunnelTerminationTypeChoices .TYPE_VIRTUALMACHINE :
161161 self .fields ['termination1_parent' ].label = _ ('Virtual Machine' )
162162 self .fields ['termination1_parent' ].queryset = VirtualMachine .objects .all ()
163163 self .fields ['termination1_termination' ].queryset = VMInterface .objects .all ()
@@ -168,7 +168,7 @@ def __init__(self, *args, initial=None, **kwargs):
168168 'virtual_machine_id' : '$termination1_parent' ,
169169 })
170170
171- if get_field_value (self , 'termination2_type' ) == TunnelTerminationTypeChoices .TYPE_VIRUTALMACHINE :
171+ if get_field_value (self , 'termination2_type' ) == TunnelTerminationTypeChoices .TYPE_VIRTUALMACHINE :
172172 self .fields ['termination2_parent' ].label = _ ('Virtual Machine' )
173173 self .fields ['termination2_parent' ].queryset = VirtualMachine .objects .all ()
174174 self .fields ['termination2_termination' ].queryset = VMInterface .objects .all ()
@@ -265,7 +265,7 @@ class Meta:
265265 def __init__ (self , * args , initial = None , ** kwargs ):
266266 super ().__init__ (* args , initial = initial , ** kwargs )
267267
268- if initial and initial .get ('type' ) == TunnelTerminationTypeChoices .TYPE_VIRUTALMACHINE :
268+ if initial and initial .get ('type' ) == TunnelTerminationTypeChoices .TYPE_VIRTUALMACHINE :
269269 self .fields ['parent' ].label = _ ('Virtual Machine' )
270270 self .fields ['parent' ].queryset = VirtualMachine .objects .all ()
271271 self .fields ['termination' ].queryset = VMInterface .objects .all ()
0 commit comments