18
18
19
19
###################################################################
20
20
#
21
- # fortiosapi.py aims at simplyfing the configuration and
21
+ # fortiosapi.py aims at simplifying the configuration and
22
22
# integration of Fortgate configuration using the restapi
23
23
#
24
24
# A Python module to abstract configuration using FortiOS REST API
@@ -169,7 +169,6 @@ def login(self, host, username, password, verify=True, cert=None, timeout=12, vd
169
169
self ._session .cert = cert
170
170
# set the default at 12 see request doc for details http://docs.python-requests.org/en/master/user/advanced/
171
171
self .timeout = timeout
172
- self .timeout = timeout
173
172
174
173
res = self ._session .post (
175
174
url ,
@@ -503,7 +502,7 @@ def setoverlayconfig(self, yamltree, vdom=None):
503
502
504
503
yamltreel3 = OrderedDict ()
505
504
yamltreel3 = copy .deepcopy (yamltree )
506
- LOG .debug ("intial yamltreel3 is %s " , yamltreel3 )
505
+ LOG .debug ("initial yamltreel3 is %s " , yamltreel3 )
507
506
for name in yamltree .copy ():
508
507
for path in yamltree [name ]:
509
508
for k in yamltree [name ][path ].copy ():
@@ -516,7 +515,7 @@ def setoverlayconfig(self, yamltree, vdom=None):
516
515
else :
517
516
# Should then be a string only so remove from yamltreel3
518
517
del yamltreel3 [name ][path ]
519
- # yamltree and yamltreel3 are now differents
518
+ # yamltree and yamltreel3 are now different
520
519
LOG .debug ("after yamltree is %s " , yamltree )
521
520
LOG .debug ("after yamltreel3 is %s " , yamltreel3 )
522
521
restree = False
0 commit comments