2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-23 19:52:10 +00:00

Fix exitcode references before use

This commit is contained in:
Jarrod Johnson 2018-05-17 11:11:11 -04:00
parent 6cba560f6a
commit 22049002bb
2 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,7 @@ def update_firmware(session, filename):
sys.stderr.write('{0}: {1}\n'.format(node, noderrs[node]))
def show_firmware(session):
global exitcode
firmware_shown = False
for component in components:
for res in session.read(

View File

@ -35,6 +35,7 @@ _attraliases = {
def printerror(res, node=None):
exitcode = 0
if 'errorcode' in res:
exitcode = res['errorcode']
if 'error' in res: