Skip to content

Commit ba27578

Browse files
committed
Fix bug in script name parsing
1 parent 3ce57a1 commit ba27578

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudstackops/xenserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def host_reboot(self, host, halt_hypervisor=False):
224224

225225
# Execute script on hypervisor
226226
def exec_script_on_hypervisor(self, host, script):
227-
host = host.split('/')[-1]
227+
script = script.split('/')[-1]
228228
print "Note: Executing script '%s' on host %s.." % (script, host.name)
229229
try:
230230
with settings(show('output'), host_string=self.ssh_user + "@" + host.ipaddress):

0 commit comments

Comments
 (0)