Merge "Fix AttributeError in hugepagereport and virshaudit actions"
This commit is contained in:
@@ -49,7 +49,7 @@ def hugepages_report():
|
||||
except subprocess.CalledProcessError as e:
|
||||
hookenv.log(e)
|
||||
hookenv.action_fail(
|
||||
"Getting hugepages report failed: {}".format(e.message)
|
||||
"Getting hugepages report failed: {}".format(e)
|
||||
)
|
||||
with open(KERNELCMD, 'rb') as cmdline:
|
||||
try:
|
||||
|
||||
@@ -46,7 +46,7 @@ def virsh_audit():
|
||||
except subprocess.CalledProcessError as e:
|
||||
hookenv.log(e)
|
||||
hookenv.action_fail(
|
||||
"Getting virsh list report failed: {}".format(e.message)
|
||||
"Getting virsh list report failed: {}".format(e)
|
||||
)
|
||||
hookenv.action_set(outmap)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user