mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Attempt to fix more pylint errors and warnings
Related to saltstack/salt#27089 Saltcloud virtualbox provider
This commit is contained in:
parent
4eab39e9ca
commit
7965eaab3c
@ -14,7 +14,6 @@ Dicts provided by salt:
|
||||
__opts__ : contains the options used to run Salt Cloud,
|
||||
as well as a set of configuration and environment variables
|
||||
"""
|
||||
|
||||
# Import python libs
|
||||
import logging
|
||||
|
||||
|
@ -189,7 +189,7 @@ def vb_get_network_adapters(machine_name=None, machine=None):
|
||||
)
|
||||
network_adapter["properties"] = inetwork_adapter.getProperties("")
|
||||
network_adapters.append(network_adapter)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return network_adapters
|
||||
@ -285,7 +285,6 @@ def vb_get_network_addresses(machine_name=None, machine=None):
|
||||
ip_addresses.append(address)
|
||||
except Exception as e:
|
||||
log.debug(e.message)
|
||||
pass
|
||||
|
||||
return ip_addresses
|
||||
|
||||
|
@ -4,7 +4,7 @@ import logging
|
||||
|
||||
import time
|
||||
|
||||
from utils.timeout import wait_for
|
||||
from salt.utils.timeout import wait_for
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user