From 052fd683c9de93b120ce94e55d9dba28e8c2d55d Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Wed, 25 Apr 2018 19:20:40 +0100 Subject: [PATCH] Include the deployment subdirectory under files FULL_STRUCTURE This is to include the 'deployment' subdirectory in the FULL_STRUCTURE data structure which defines the tree for the expected Pegleg directory. It is included in Treasuremap [0] and aic-global-manifests so should be included under FULL_STRUCTURE. [0] https://github.com/att-comdev/treasuremap/tree/master/deployment_files/site/atl-lab1 Change-Id: I6e91f36977dcaffe8600892a3d59885c9ec0e9fd --- src/bin/pegleg/pegleg/engine/util/files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/pegleg/pegleg/engine/util/files.py b/src/bin/pegleg/pegleg/engine/util/files.py index fa51fb36..c2fd3e9a 100644 --- a/src/bin/pegleg/pegleg/engine/util/files.py +++ b/src/bin/pegleg/pegleg/engine/util/files.py @@ -65,6 +65,7 @@ def create_site_type_directories(*, revision, site_type): FULL_STRUCTURE = { 'directories': { 'baremetal': {}, + 'deployment': {}, 'networks': { 'directories': { 'physical': {}, @@ -161,7 +162,7 @@ def _site_path(site_name): def list_sites(primary_repo_base=None): - """Get a list of site defintion directories in the primary repo.""" + """Get a list of site definition directories in the primary repo.""" if not primary_repo_base: primary_repo_base = config.get_primary_repo() for path in os.listdir(os.path.join(primary_repo_base, 'site')):