mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
pylint fixes for cloudstack module
This commit is contained in:
parent
ce8aaad47f
commit
cbb3ce7b13
@ -1,3 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
CloudStack Cloud Module
|
||||
=======================
|
||||
@ -178,7 +179,7 @@ def get_ip(data):
|
||||
'''
|
||||
try:
|
||||
ip = data.public_ips[0]
|
||||
except:
|
||||
except Exception:
|
||||
ip = data.private_ips[0]
|
||||
return ip
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user