'LIMIT {:d},{:d}').format(
self.safe_str(wim_account_id),
','.join(type_options),
'LIMIT {:d},{:d}').format(
self.safe_str(wim_account_id),
','.join(type_options),
'task_index': task_index}
try:
action = self.query_one('vim_wim_actions', WHERE=condition)
'task_index': task_index}
try:
action = self.query_one('vim_wim_actions', WHERE=condition)
actions = self.query('vim_wim_actions', WHERE=condition)
self.logger.error('More then one action found:\n%s',
json.dumps(actions, indent=4))
actions = self.query('vim_wim_actions', WHERE=condition)
self.logger.error('More then one action found:\n%s',
json.dumps(actions, indent=4))
updates = preprocess_record(
merge_dicts(action, properties, extra=extra))
updates = preprocess_record(
merge_dicts(action, properties, extra=extra))
- num_changes = self.db.update_rows('vim_wim_actions',
- UPDATE=updates, WHERE=condition)
+ num_changes = self.db.update_rows('vim_wim_actions', UPDATE=updates, WHERE=condition)
- return self.db.update_rows('instance_actions',
- WHERE={'uuid': uuid}, UPDATE=changes)
+ return self.db.update_rows('instance_actions', WHERE={'uuid': uuid}, UPDATE=changes)
def get_only_vm_with_external_net(self, instance_net_id, **kwargs):
"""Return an instance VM if that is the only VM connected to an
def get_only_vm_with_external_net(self, instance_net_id, **kwargs):
"""Return an instance VM if that is the only VM connected to an