mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Merge pull request #2747 from ryanpetrello/isolated-set-stat
set_stats fails in callback plugin on isolated node #2123
This commit is contained in:
@@ -308,6 +308,7 @@ class BaseCallbackModule(CallbackBase):
|
|||||||
if custom_artifact_data:
|
if custom_artifact_data:
|
||||||
# create the directory for custom stats artifacts to live in (if it doesn't exist)
|
# create the directory for custom stats artifacts to live in (if it doesn't exist)
|
||||||
custom_artifacts_dir = os.path.join(os.getenv('AWX_PRIVATE_DATA_DIR'), 'artifacts')
|
custom_artifacts_dir = os.path.join(os.getenv('AWX_PRIVATE_DATA_DIR'), 'artifacts')
|
||||||
|
if not os.path.isdir(custom_artifacts_dir):
|
||||||
os.makedirs(custom_artifacts_dir, mode=stat.S_IXUSR + stat.S_IWUSR + stat.S_IRUSR)
|
os.makedirs(custom_artifacts_dir, mode=stat.S_IXUSR + stat.S_IWUSR + stat.S_IRUSR)
|
||||||
|
|
||||||
custom_artifacts_path = os.path.join(custom_artifacts_dir, 'custom')
|
custom_artifacts_path = os.path.join(custom_artifacts_dir, 'custom')
|
||||||
|
|||||||
Reference in New Issue
Block a user