Skip to content

Commit 07cedd7

Browse files
committed
compute: Fix debug message
1 parent 0f170a9 commit 07cedd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fence/agents/compute/fence_compute.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
EVACUABLE_TAG = "evacuable"
2323
TRUE_TAGS = ['true']
2424

25-
2625
def get_power_status(_, options):
2726
global override_status
2827

@@ -273,7 +272,7 @@ def fix_plug_name(options):
273272

274273
fix_domain(options)
275274
short_plug = options["--plug"].split('.')[0]
276-
logging.debug("Checking target '%s' against calculated domain '%s'"% (options["--plug"], calculated))
275+
logging.debug("Checking target '%s' against calculated domain '%s'"% (options["--plug"], options["--domain"]))
277276

278277
if "--domain" not in options:
279278
# Nothing supplied and nova not available... what to do... nothing
@@ -321,7 +320,8 @@ def create_nova_connection(options):
321320
options["--auth-url"],
322321
insecure=options["--insecure"],
323322
region_name=options["--region-name"],
324-
endpoint_type=options["--endpoint-type"])
323+
endpoint_type=options["--endpoint-type"],
324+
http_log_debug=options.has_key("--verbose"))
325325
try:
326326
nova.hypervisors.list()
327327
return

0 commit comments

Comments
 (0)