Exemple #1
0
 def _load_clouds(self, cloud_config):
     print("Loading clouds from file...")
     clouds = yaml_cloud_config_loader.load(cloud_config)
     for cloud in clouds.keys():
         print('Cloud_id: {0}'.format(cloud))
         self.storage.index(index='clouds',
                            doc_type='cloud',
                            body=clouds.get(cloud),
                            id=cloud)
 def _load_clouds(self, cloud_config):
     clouds = yaml_cloud_config_loader.load(cloud_config)
     for cloud in clouds.keys():
         for config_property in clouds[cloud]:
             if config_property == 'type':
                 print 'type: ' + clouds[cloud][config_property]
                 self.storage.add_cloud(
                     clouds[cloud], provider=clouds[cloud][config_property])
                 return