There's no valid case in which we should be creating a resource multiple
times.
Change-Id: Id90edd3a09ec15d3814a322ac0b7ec75fd0be54a
Create the resource. Subclasses should provide a handle_create() method
to customise creation.
'''
- if self.state in (self.CREATE_IN_PROGRESS, self.CREATE_COMPLETE):
- return 'Resource creation already requested'
+ assert self.state is None, 'Resource create requested in invalid state'
logger.info('creating %s' % str(self))
s)
id_list.append(inst.FnGetRefId())
- resource.nested().create()
-
resource.reload(id_list)
self.assertEqual('4.5.6.7', resource.FnGetAtt('DNSName'))