Closed robertpenz closed 6 years ago
if I change the methods to following it works
@login_required
def lock_adom(self, adom):
'''
Lock an ADOM
'''
return self._exec(url="pm/config/adom/{}/_workspace/lock".format(adom), request_id = 5612)
@login_required
def unlock_adom(self, adom):
'''
Unclock an ADOM
'''
return self._exec(url="pm/config/adom/{}/_workspace/unlock".format(adom), request_id = 5613)
@login_required
def commit(self, adom):
'''
Commit changes made to ADOM
'''
return self._exec(url="pm/config/adom/{}/_workspace/commit".format(adom), request_id = 5614)
Thanks for letting me know. What FortiManager version are you using?
Can you issue a PR with these changes?
Did a PR.
Hi!
fortimanager.lock_adom() calls
return self._request(data)
, but _requests is defined aswhich leads to
TypeError: _request() takes at least 3 arguments (2 given)
. Should the data json dict split up and provided as parameters for the method?