Merge pull request #20 from beelit94/python-terraform-10
add changelog handler
This commit is contained in:
commit
4191b40cdc
1 changed files with 8 additions and 0 deletions
|
@ -10,7 +10,15 @@ import tempfile
|
|||
|
||||
from python_terraform.tfstate import Tfstate
|
||||
|
||||
try: # Python 2.7+
|
||||
from logging import NullHandler
|
||||
except ImportError:
|
||||
class NullHandler(logging.Handler):
|
||||
def emit(self, record):
|
||||
pass
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
log.addHandler(NullHandler())
|
||||
|
||||
|
||||
class IsFlagged:
|
||||
|
|
Loading…
Reference in a new issue