2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-29 00:31:09 +00:00

Fix node*attrib commands show of undefined attributes

It would unfairly call things an invalid attribute.
This commit is contained in:
Jarrod Johnson
2017-05-05 15:30:10 -04:00
parent 4c6e3fcc4f
commit 667a1030b4
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ exitcode = 0
nodetype="noderange"
if len(args) > 1:
if "=" in args[1]:
if "=" in args[1] or options.clear:
exitcode=client.updateattrib(session,args,nodetype, noderange, options)
try:
# setting user output to what the user inputs
@@ -66,7 +66,7 @@ if len(args) > 1:
showtype = 'current'
requestargs=args[2:]
else:
showtype = 'current'
showtype = 'all'
requestargs=args[1:]
except:
pass
+1
View File
@@ -57,6 +57,7 @@ exitcode = 0
#Sets attributes
if len(args) > 1:
showtype = 'all'
exitcode=client.updateattrib(session,args,nodetype, nodegroups, options)
try:
# setting user output to what the user inputs