def make_example_config(aio_config_file, configs_dir):
 config = {}
 files = glob.glob(os.path.join(configs_dir, '*.aio'))
 for file_name in files:
  with open(file_name, 'r') as f:
   config.update(yaml.safe_load(f.read()))
 with open(aio_config_file, 'r') as f:
  config.update(yaml.safe_load(f.read()))
 return config

def make_example_config ( aio_config_file , configs_dir ) : config = { } files = glob . glob ( os . path . join ( configs_dir , '*.aio' ) ) for file_name in files : with open ( file_name , 'r' ) as f : config . update ( yaml . safe_load ( f . read ( ) ) ) with open ( aio_config_file , 'r' ) as f : config . update ( yaml . safe_load ( f . read ( ) ) ) return config
build an inventory configuration based on example aio files .