Fixes minor PEP8 errors
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
import ctypes
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
import uuid
|
||||
|
||||
|
||||
@@ -503,7 +503,8 @@ def _setup_logging_from_conf(project, version):
|
||||
if CONF.publish_errors:
|
||||
try:
|
||||
handler = importutils.import_object(
|
||||
"cloudbaseinit.openstack.common.log_handler.PublishErrorsHandler",
|
||||
"cloudbaseinit.openstack.common.log_handler."
|
||||
"PublishErrorsHandler",
|
||||
logging.ERROR)
|
||||
except ImportError:
|
||||
handler = importutils.import_object(
|
||||
|
||||
@@ -50,8 +50,6 @@ class WinRMConfig(object):
|
||||
listening_on = []
|
||||
data = {"ListeningOn": listening_on}
|
||||
|
||||
ns = {'cfg':
|
||||
'http://schemas.microsoft.com/wbem/wsman/1/config/listener'}
|
||||
tree = ElementTree.fromstring(data_xml)
|
||||
for node in tree:
|
||||
tag = self._get_node_tag(node.tag)
|
||||
@@ -76,9 +74,6 @@ class WinRMConfig(object):
|
||||
|
||||
data = {}
|
||||
|
||||
ns = {'cfg':
|
||||
'http://schemas.microsoft.com/wbem/wsman/1/config/service/'
|
||||
'certmapping.xsd'}
|
||||
tree = ElementTree.fromstring(data_xml)
|
||||
for node in tree:
|
||||
tag = self._get_node_tag(node.tag)
|
||||
|
||||
Reference in New Issue
Block a user