2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Fix the prompting code changes

This commit is contained in:
Jarrod Johnson 2018-09-04 11:09:26 -04:00
parent d6110c7118
commit 38228ebc9b
2 changed files with 5 additions and 6 deletions

View File

@ -17,6 +17,7 @@
__author__ = 'alin37'
from getpass import getpass
import optparse
import os
import signal

View File

@ -530,13 +530,11 @@ def updateattrib(session, updateargs, nodetype, noderange, options, dictassign=N
elif dictassign:
for key in dictassign:
if nodetype == 'nodegroups':
exitcode = session.simp_nodegroups_command(noderange,
'attributes/all',
dictassign[key], key)
exitcode = session.simple_nodegroups_command(
noderange, 'attributes/all', dictassign[key], key)
else:
exitcode = session.simp_nodegroups_command(noderange,
'attributes/all',
dictassign[key], key)
exitcode = session.simple_noderange_command(
noderange, 'attributes/all', dictassign[key], key)
else:
if "=" in updateargs[1]:
try: