mirror of https://github.com/apache/cloudstack.git
Removing "global" declaration from if block
In python an "if" block doesn't change the scope. So, global not needed as it was creating an warning.
This commit is contained in:
parent
185975f6ac
commit
099add4fd6
|
|
@ -156,7 +156,6 @@ def notify_provisioning_done(mac):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
global server
|
||||
server = Server()
|
||||
shell("iptables-save | grep -- '-A INPUT -i eth0 -p tcp -m tcp --dport 10086 -j ACCEPT' > /dev/null || iptables -I INPUT -i eth0 -p tcp -m tcp --dport 10086 -j ACCEPT")
|
||||
app.run(host='0.0.0.0', port=10086, debug=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue