Pārlūkot izejas kodu

Fix modelschema.schema_list()

* Fix glob path, since :
    ipdb> print '{}/*/*/schemas/*.yaml'.format(_get_base_dir())
    /usr/share/salt-formulas/env/*/*/schemas/*.yaml
    Process empty list:
    ipdb> print schemas
    []

Change-Id: I6ad048cb601baea9282e3c2a30fb79fdddd1ee0b
pull/70/merge
azvyagintsev pirms 7 gadiem
vecāks
revīzija
0d683713df
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      _modules/modelschema.py

+ 1
- 1
_modules/modelschema.py Parādīt failu



""" """
output = {} output = {}
schemas = glob.glob('{}/*/*/schemas/*.yaml'.format(_get_base_dir()))
schemas = glob.glob('{}/*/schemas/*.yaml'.format(_get_base_dir()))
for schema in schemas: for schema in schemas:
if os.path.exists(schema): if os.path.exists(schema):
role_name = schema.split('/')[-1].replace('.yaml', '') role_name = schema.split('/')[-1].replace('.yaml', '')

Notiek ielāde…
Atcelt
Saglabāt