From 033d12253032818e680b2556e34da00f0609b2a1 Mon Sep 17 00:00:00 2001 From: xuweibj Date: Wed, 4 Apr 2018 09:36:44 +0800 Subject: [PATCH] fix issue 5047, modify url for rspconfig autoreboot (#5052) --- .../lib/python/agent/hwctl/executor/openbmc_bmcconfig.py | 2 +- xCAT-openbmc-py/lib/python/agent/hwctl/openbmc_client.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_bmcconfig.py b/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_bmcconfig.py index 322827da5..8890f5ce2 100644 --- a/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_bmcconfig.py +++ b/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_bmcconfig.py @@ -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: diff --git a/xCAT-openbmc-py/lib/python/agent/hwctl/openbmc_client.py b/xCAT-openbmc-py/lib/python/agent/hwctl/openbmc_client.py index a73281a3a..a33714129 100644 --- a/xCAT-openbmc-py/lib/python/agent/hwctl/openbmc_client.py +++ b/xCAT-openbmc-py/lib/python/agent/hwctl/openbmc_client.py @@ -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': {