We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6e1423 + d0a001d commit b276d9bCopy full SHA for b276d9b
1 file changed
cloudstackops/xenserver.py
@@ -113,7 +113,7 @@ def get_poolmaster(self, host):
113
def get_patch_level(self, host):
114
try:
115
with settings(host_string=self.ssh_user + "@" + host.ipaddress):
116
- return fab.run("for p in $(xe patch-list | grep XS | awk {'print $4'} | tr -d \" \" |\
+ return fab.run("for p in $(xe patch-list | grep XS.*E | awk {'print $4'} | tr -d \" \" |\
117
sort | tr '\n' ' '); do echo -n $p \"(\"; xe patch-list name-label=$p params=hosts |\
118
awk -F: {'print $2'} | tr -cd , | awk {'print $1 \",\"'} | tr -d '\n' | wc -c | tr -d '\n'; echo -n \") \"; done")
119
except:
0 commit comments