From f347757444c74a3d597dc353aa92d88a0f6282bb Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Fri, 14 Dec 2018 09:24:09 +0800 Subject: Fix fence_libvirt JIRA: - Bug fix Change-Id: I97dee71f21e01534ac9ea24e554ad61b34916494 Signed-off-by: Harry Huang --- compass-cobbler/fence_libvirt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compass-cobbler/fence_libvirt b/compass-cobbler/fence_libvirt index a59373b..53e235c 100755 --- a/compass-cobbler/fence_libvirt +++ b/compass-cobbler/fence_libvirt @@ -84,7 +84,7 @@ def no_cli(): opt.update({name: value}) except Exception: continue - try: + if opt["action"] and opt["hostname"]: power_action(opt["action"], opt["hostname"], opt["user"], opt["passwd"]) -- cgit 1.2.3-korg