Constants path formatting unification
Paths in the constants.py are now formatted using a single function, the os.path.join. This both normalizes the code and reduces chance of errors and confusion arising from nonstandard paths. Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: I761c4449579590b9081a78627eeac754d6b04e2a
This commit is contained in:
parent
f525c9f556
commit
2edaaffc5b
|
@ -18,7 +18,9 @@ DEFAULT_VALIDATIONS_BASEDIR = '/usr/share/ansible/'
|
||||||
|
|
||||||
ANSIBLE_VALIDATION_DIR = '/usr/share/ansible/validation-playbooks'
|
ANSIBLE_VALIDATION_DIR = '/usr/share/ansible/validation-playbooks'
|
||||||
|
|
||||||
VALIDATION_GROUPS_INFO = '%s/groups.yaml' % DEFAULT_VALIDATIONS_BASEDIR
|
VALIDATION_GROUPS_INFO = os.path.join(
|
||||||
|
DEFAULT_VALIDATIONS_BASEDIR,
|
||||||
|
'groups.yaml')
|
||||||
|
|
||||||
VALIDATION_GROUPS = ['no-op',
|
VALIDATION_GROUPS = ['no-op',
|
||||||
'prep',
|
'prep',
|
||||||
|
@ -26,5 +28,6 @@ VALIDATION_GROUPS = ['no-op',
|
||||||
|
|
||||||
VALIDATIONS_LOG_BASEDIR = os.path.join(os.environ.get('HOME'), 'validations')
|
VALIDATIONS_LOG_BASEDIR = os.path.join(os.environ.get('HOME'), 'validations')
|
||||||
|
|
||||||
VALIDATION_ANSIBLE_ARTIFACT_PATH = '{}/artifacts/'.format(
|
VALIDATION_ANSIBLE_ARTIFACT_PATH = os.path.join(
|
||||||
VALIDATIONS_LOG_BASEDIR)
|
VALIDATIONS_LOG_BASEDIR,
|
||||||
|
'artifacts')
|
||||||
|
|
Loading…
Reference in New Issue