2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 00:00:12 +00:00

fix issue 5047, modify url for rspconfig autoreboot (#5052)

This commit is contained in:
xuweibj
2018-04-04 09:36:44 +08:00
committed by Bin Xu
parent 4ed5a04d10
commit 033d122530
2 changed files with 3 additions and 3 deletions

View File

@ -400,7 +400,7 @@ rmdir \"/tmp/$userid\" \n")
return self.callback.error(e.message, node)
if isinstance(value, dict):
str_value = value.values()[0]
str_value = str(value.values()[0])
elif value:
str_value = str(value)
else:

View File

@ -181,8 +181,8 @@ RSPCONFIG_APIS = {
'display_name': "BMC Hostname",
},
'autoreboot' : {
'baseurl': "/control/host0/auto_reboot/",
'set_url': "attr/AutoReboot",
'baseurl': "/control/host0/auto_reboot",
'set_url': "/attr/AutoReboot",
'get_url': "",
'display_name': "BMC AutoReboot",
'attr_values': {