Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=710a56b93... Commit: 710a56b931e6431526419d13cfb095d691a6cf84 Parent: ebedf3dfe3a76cc164f590681186b68e0081092e Author: Marek 'marx' Grac mgrac@redhat.com AuthorDate: Thu Feb 7 21:38:57 2013 +0100 Committer: Marek 'marx' Grac mgrac@redhat.com CommitterDate: Thu Feb 7 21:38:57 2013 +0100
fence_virsh: Replace constant (1) with variable from --power-wait
--- fence/agents/virsh/fence_virsh.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fence/agents/virsh/fence_virsh.py b/fence/agents/virsh/fence_virsh.py index 1a38940..ccbd6e2 100644 --- a/fence/agents/virsh/fence_virsh.py +++ b/fence/agents/virsh/fence_virsh.py @@ -56,7 +56,7 @@ def set_power_status(conn, options): conn.sendline(prefix + "virsh %s "%(options["--action"] == "on" and "start" or "destroy")+options["--plug"])
conn.log_expect(options, options["--command-prompt"], int(options["--power-timeout"])) - time.sleep(1) + time.sleep(int(options["--power-wait"]))
def main(): device_opt = [ "ipaddr", "login", "passwd", "cmd_prompt", "secure", "port", "sudo" ]
cluster-commits@lists.fedorahosted.org