Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 ts-host-powercycle | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ts-host-powercycle b/ts-host-powercycle
index 5c1698c7..79a3b711 100755
--- a/ts-host-powercycle
+++ b/ts-host-powercycle
@@ -33,8 +33,10 @@ our ($whhost) = @ARGV;
 $whhost ||= 'host';
 our $ho= selecthost($whhost);
 
+my $approach_re = qr{(?!.*SSH)};
+
 if (defined $only) {
-    power_state($ho, $only);
+    power_state($ho, $only, $approach_re);
 } else {
-    power_cycle($ho);
+    power_cycle($ho, $approach_re);
 }
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to