mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 10:27:34 -02:30
move an optional import for awxkit
I'm not sure that this function is actually in use anywhere anymore, but it shouldn't be a top-level import because it represents an optional dependency.
This commit is contained in:
@@ -2,7 +2,6 @@ import os
|
|||||||
import yaml
|
import yaml
|
||||||
import glob
|
import glob
|
||||||
import logging
|
import logging
|
||||||
from py.path import local
|
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
@@ -82,6 +81,7 @@ def load_file(filename):
|
|||||||
- "{random_uuid}"
|
- "{random_uuid}"
|
||||||
random_thing: "{random_string:24}"
|
random_thing: "{random_string:24}"
|
||||||
"""
|
"""
|
||||||
|
from py.path import local
|
||||||
if filename is None:
|
if filename is None:
|
||||||
this_file = os.path.abspath(__file__)
|
this_file = os.path.abspath(__file__)
|
||||||
path = local(this_file).new(basename='../data.yaml')
|
path = local(this_file).new(basename='../data.yaml')
|
||||||
|
|||||||
Reference in New Issue
Block a user