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
This commit is contained in:
Felipe Monteiro 2018-04-25 19:20:40 +01:00
parent eced6aa071
commit 052fd683c9
1 changed files with 2 additions and 1 deletions

View File

@ -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')):