From c8b4cb0b1abf106741761d9c2e5e035fa0f999c6 Mon Sep 17 00:00:00 2001 From: Jincheng Miao Date: Thu, 6 Aug 2015 09:20:45 +0800 Subject: [PATCH] fix error when active resource disk in BSD The error report is: Traceback (most recent call last): File "/tmp/bsd_activate_resource_disk.py", line 12, in Config=waagent.ConfigurationProvider() TypeError: __init__() takes exactly 2 arguments (1 given) ConfigurationProvider is changed to accept two arguments from commit 88e8d5f47, but it doesn't update ConfigurationProvider in bsd_activate_resource_disk.py. Signed-off-by: Jincheng Miao --- waagent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waagent b/waagent index 52e022f69b..88b700b0df 100644 --- a/waagent +++ b/waagent @@ -1661,7 +1661,7 @@ __name__='setupmain' #prevent waagent.__main__ from executing waagent=imp.load_source('waagent','/tmp/waagent') waagent.LoggerInit('/var/log/waagent.log','/dev/console') from waagent import RunGetOutput,Run -Config=waagent.ConfigurationProvider() +Config=waagent.ConfigurationProvider(None) format = Config.get("ResourceDisk.Format") if format == None or format.lower().startswith("n"): sys.exit(0)