Attempt to fix more pylint errors and warnings

Related to saltstack/salt#27089 Saltcloud virtualbox provider
This commit is contained in:
LoveIsGrief 2016-02-11 16:58:57 +01:00
parent 4eab39e9ca
commit 7965eaab3c
3 changed files with 2 additions and 4 deletions

View File

@ -14,7 +14,6 @@ Dicts provided by salt:
__opts__ : contains the options used to run Salt Cloud, __opts__ : contains the options used to run Salt Cloud,
as well as a set of configuration and environment variables as well as a set of configuration and environment variables
""" """
# Import python libs # Import python libs
import logging import logging

View File

@ -189,7 +189,7 @@ def vb_get_network_adapters(machine_name=None, machine=None):
) )
network_adapter["properties"] = inetwork_adapter.getProperties("") network_adapter["properties"] = inetwork_adapter.getProperties("")
network_adapters.append(network_adapter) network_adapters.append(network_adapter)
except: except Exception:
pass pass
return network_adapters return network_adapters
@ -285,7 +285,6 @@ def vb_get_network_addresses(machine_name=None, machine=None):
ip_addresses.append(address) ip_addresses.append(address)
except Exception as e: except Exception as e:
log.debug(e.message) log.debug(e.message)
pass
return ip_addresses return ip_addresses

View File

@ -4,7 +4,7 @@ import logging
import time import time
from utils.timeout import wait_for from salt.utils.timeout import wait_for
log = logging.getLogger(__name__) log = logging.getLogger(__name__)