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:
@ -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:
|
||||
|
@ -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': {
|
||||
|
Reference in New Issue
Block a user