We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d43e72 commit 3212040Copy full SHA for 3212040
1 file changed
cloudstackops/xenserver.py
@@ -220,7 +220,7 @@ def pool_ha_enable(self, host):
220
print "Note: Enabling HA"
221
try:
222
with settings(host_string=self.ssh_user + "@" + host.ipaddress):
223
- if fab.run("cat /etc/redhat-release | awk '{ $3 = substr($3,1,3); print $3 }'") == "6.2"
+ if fab.run("cat /etc/redhat-release | awk '{ $3 = substr($3,1,3); print $3 }'") == "6.2":
224
return fab.run("xe pool-ha-enable heartbeat-sr-uuids=$(xe sr-list type=nfs params=uuid --minimal) ha-config:timeout=180 ha-config:ha-host-failures-to-tolerate=1")
225
else:
226
return fab.run("xe pool-ha-enable heartbeat-sr-uuids=$(xe sr-list type=nfs params=uuid --minimal) ha-config:timeout=180; xe pool-param-set uuid=$(xe pool-list params=uuid --minimal) ha-host-failures-to-tolerate=1")
0 commit comments