Use an explicit absolute import for importing the logging module
Change-Id: Ic8a6107e202644a8a5298332712cbf2896a5e408
This commit is contained in:
parent
735f0ac4ad
commit
62c23a29b7
@ -4,7 +4,6 @@
|
||||
# vi: ts=4 expandtab
|
||||
|
||||
import collections
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
|
||||
@ -15,6 +14,9 @@ try:
|
||||
except (ImportError, AttributeError):
|
||||
JINJA_AVAILABLE = False # noqa
|
||||
|
||||
from cloudinit import logging
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
TYPE_MATCHER = re.compile(r"##\s*template:(.*)", re.I)
|
||||
BASIC_MATCHER = re.compile(r'\$\{([A-Za-z0-9_.]+)\}|\$([A-Za-z0-9_.]+)')
|
||||
|
@ -3,7 +3,6 @@
|
||||
#
|
||||
# vi: ts=4 expandtab
|
||||
|
||||
import logging
|
||||
import time
|
||||
|
||||
try:
|
||||
@ -28,6 +27,7 @@ from six.moves.http_client import CONFLICT # noqa
|
||||
from six.moves.http_client import MULTIPLE_CHOICES as _MULTIPLE_CHOICES
|
||||
from six.moves.http_client import OK
|
||||
|
||||
from cloudinit import logging
|
||||
from cloudinit import version
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user