mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-25 23:02:20 +00:00
Fix mistakes in previous commit
This commit is contained in:
parent
3b7ecd0095
commit
ba18b9936f
@ -175,8 +175,9 @@ for param in args[1:]:
|
||||
session = client.Command()
|
||||
rcode = 0
|
||||
if options.restoredefault:
|
||||
for fr in session.update('/noderange/{0}/configuration/system/clear',
|
||||
{'clear': True}):
|
||||
for fr in session.update(
|
||||
'/noderange/{0}/configuration/system/clear'.format(noderange),
|
||||
{'clear': True}):
|
||||
rcode |= client.printerror(fr)
|
||||
sys.exit(rcode)
|
||||
if setmode:
|
||||
|
@ -496,7 +496,7 @@ class InputExpression(ConfluentMessage):
|
||||
return nodeattr
|
||||
|
||||
class InputConfigClear(ConfluentMessage):
|
||||
def __init__(self, path, inputdata, nodes=None):
|
||||
def __init__(self, path, inputdata, nodes=None, configmanager=None):
|
||||
if not inputdata:
|
||||
raise exc.InvalidArgumentException('no request data provided')
|
||||
if 'clear' not in inputdata or not inputdata['clear']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user