class Unit(model.ModelEntity):
def _get_tag(self):
- return 'unit-{}'.format(self.data['Name'].replace('/', '-'))
+ return 'unit-{}'.format(self.data['name'].replace('/', '-'))
def add_storage(self, name, constraints=None):
"""Add unit storage dynamically.
action.connect(conn)
log.debug(
- 'Running `%s` on %s', command, self.Name)
+ 'Running `%s` on %s', command, self.name)
return await action.Run(
[],
command,
[],
timeout,
- [self.Name],
+ [self.name],
)
def run_action(self, action_name, **params):