Skip to content

Commit b3057cf

Browse files
committed
linter fixes
1 parent 5ee3ace commit b3057cf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

scripts/vm/hypervisor/xenserver/xenserver84/vmopspremium

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/python
22
# Licensed to the Apache Software Foundation (ASF) under one
33
# or more contributor license agreements. See the NOTICE file
44
# distributed with this work for additional information
55
# regarding copyright ownership. The ASF licenses this file
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
11-
#
11+
#
1212
# Unless required by applicable law or agreed to in writing,
1313
# software distributed under the License is distributed on an
1414
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,7 @@
1818

1919
# Version @VERSION@
2020
#
21-
# A plugin for executing script needed by vmops cloud
21+
# A plugin for executing script needed by vmops cloud
2222

2323
import os, sys, time
2424
import XenAPIPlugin
@@ -133,17 +133,17 @@ def setup_heartbeat_file(session, args):
133133
txt = ''
134134
return txt
135135

136-
136+
137137
@echo
138138
def heartbeat(session, args):
139139
host = args['host']
140140
timeout = args['timeout']
141141
interval = args['interval']
142-
try:
143-
cmd = ["/bin/bash", "/opt/cloud/bin/launch_hb.sh", host, timeout, interval]
144-
txt = util.pread2(cmd)
142+
try:
143+
cmd = ["/bin/bash", "/opt/cloud/bin/launch_hb.sh", host, timeout, interval]
144+
txt = util.pread2(cmd)
145145
except:
146-
txt='fail'
146+
txt='fail'
147147
return txt
148148

149149
@echo

0 commit comments

Comments
 (0)