예제 #1
0
파일: shared.py 프로젝트: jonnary/senlin
def create_profile(context, profile=sample_profile, **kwargs):
    data = parser.simple_parse(profile)
    data['user'] = context.user
    data['project'] = context.project
    data['domain'] = context.domain
    data.update(kwargs)
    return db_api.profile_create(context, data)
예제 #2
0
def create_profile(context, profile=sample_profile, **kwargs):
    data = parser.simple_parse(profile)
    data['user'] = context.user
    data['project'] = context.project
    data['domain'] = context.domain
    data.update(kwargs)
    return db_api.profile_create(context, data)
예제 #3
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.heat.stack',
         'name': 'test-profile',
         'created_time': timeutils.utcnow(),
     }
     return db_api.profile_create(self.context, values)
예제 #4
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.heat.stack',
         'name': 'test-profile',
         'created_time': timeutils.utcnow(),
     }
     return db_api.profile_create(self.context, values)
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.nova.server',
         'name': 'test-profile',
         'created_time': timeutils.utcnow(),
         'user': self.context.user,
         'project': self.context.project,
     }
     return db_api.profile_create(self.context, values)
예제 #6
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.nova.server-1.0',
         'name': 'test-profile',
         'spec': {
             'type': 'os.nova.server',
             'version': '1.0',
         }
     }
     return db_api.profile_create(self.context, values)
예제 #7
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.nova.server-1.0',
         'name': 'test-profile',
         'spec': {
             'type': 'os.nova.server',
             'version': '1.0',
         }
     }
     return db_api.profile_create(self.context, values)
예제 #8
0
 def _create_profile(self, profile_id):
     values = {
         "id": profile_id,
         "type": "os.heat.stack-1.0",
         "name": "test-profile",
         "type": "os.heat.stack",
         "context": self.context.to_dict(),
         "spec": {"type": "os.heat.stack", "version": "1.0", "properties": {"foo": "bar"}},
         "user": self.context.user,
         "project": self.context.project,
     }
     return db_api.profile_create(self.context, values)
예제 #9
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.heat.stack-1.0',
         'name': 'test-profile',
         'type': 'os.heat.stack',
         'context': self.context.to_dict(),
         'spec': {
             'type': 'os.heat.stack',
             'version': '1.0',
             'properties': {
                 'foo': 'bar'
             }
         }
     }
     return db_api.profile_create(self.context, values)
예제 #10
0
 def _create_profile(self, profile_id):
     values = {
         'id': profile_id,
         'type': 'os.heat.stack-1.0',
         'name': 'test-profile',
         'type': 'os.heat.stack',
         'context': self.context.to_dict(),
         'spec': {
             'type': 'os.heat.stack',
             'version': '1.0',
             'properties': {
                 'foo': 'bar'
             }
         }
     }
     return db_api.profile_create(self.context, values)
예제 #11
0
파일: shared.py 프로젝트: KongJustin/senlin
def create_profile(context, profile=sample_profile, **kwargs):
    data = parser.simple_parse(profile)
    data.update(kwargs)
    return db_api.profile_create(context, data)
예제 #12
0
파일: shared.py 프로젝트: KongJustin/senlin
def create_profile(context, profile=sample_profile, **kwargs):
    data = parser.simple_parse(profile)
    data.update(kwargs)
    return db_api.profile_create(context, data)