Merge pull request #8147 from ryanpetrello/py-path

move an optional import for awxkit

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-09-15 19:32:26 +00:00 committed by GitHub
commit ef3a497c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,6 @@ import os
import yaml
import glob
import logging
from py.path import local
log = logging.getLogger(__name__)
@ -82,6 +81,7 @@ def load_file(filename):
- "{random_uuid}"
random_thing: "{random_string:24}"
"""
from py.path import local
if filename is None:
this_file = os.path.abspath(__file__)
path = local(this_file).new(basename='../data.yaml')