mirror of https://github.com/apache/cloudstack.git
bug 5876: Fix error reporting in agent setup so it will not cause a nested exception
The function stderr was being called with the wrong name of interpolation parameters. The exception was missing from the arguments to the function. status 5876: resolved fixed
This commit is contained in:
parent
b97899b2cf
commit
a2cf253b20
|
|
@ -943,7 +943,7 @@ def setup_agent_config(configfile, host, zone, pod):
|
|||
confopts["zone"] = zone
|
||||
confopts["pod"] = pod
|
||||
except (urllib2.URLError,urllib2.HTTPError),e:
|
||||
stderr("Query failed: %s. Defaulting to zone %s pod %s",confopts["zone"],confopts["pod"])
|
||||
stderr("Query failed: %s. Defaulting to zone %s pod %s",str(e),confopts["zone"],confopts["pod"])
|
||||
|
||||
for opt,val in confopts.items():
|
||||
line = "=".join([opt,val])
|
||||
|
|
@ -988,7 +988,7 @@ def setup_consoleproxy_config(configfile, host, zone, pod):
|
|||
confopts["zone"] = zone
|
||||
confopts["pod"] = pod
|
||||
except (urllib2.URLError,urllib2.HTTPError),e:
|
||||
stderr("Query failed: %s. Defaulting to zone %s pod %s",e,confopts["zone"],confopts["pod"])
|
||||
stderr("Query failed: %s. Defaulting to zone %s pod %s",str(e),confopts["zone"],confopts["pod"])
|
||||
|
||||
for opt,val in confopts.items():
|
||||
line = "=".join([opt,val])
|
||||
|
|
|
|||
Loading…
Reference in New Issue