Replaced pop with get for the dict optional_args, bad idea from the beginning
This commit is contained in:
1 parent
26078054e7
commit
2689d7080d
1 file changed
+1
-1
+1
-1
@@ -26,7 +26,7 @@ class FortiOSDriver(NetworkDriver):
|
||||
self.password = password
|
||||
|
||||
if optional_args is not None:
|
||||
self.vdom = optional_args.pop('fortios_vdom', None)
|
||||
self.vdom = optional_args.get('fortios_vdom', None)
|
||||
else:
|
||||
self.vdom = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user