mirror of
https://github.com/xcat2/confluent.git
synced 2025-08-25 12:40:22 +00:00
Fix mistakes in previous commit
This commit is contained in:
@@ -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']:
|
||||
|
Reference in New Issue
Block a user