def delete_instance_offering(instance_offering_uuid, session_uuid=None): action = api_actions.DeleteInstanceOfferingAction() action.uuid = instance_offering_uuid test_util.action_logger('Delete Instance Offering [uuid:] %s' \ % instance_offering_uuid) evt = account_operations.execute_action_with_session(action, session_uuid) return evt
def update_stack_template(uuid, stack_template_option, session_uuid=None): action = api_actions.UpdateStackTemplateAction() action.name = stack_template_option.get_name() action.state = stack_template_option.get_state() action.uuid = uuid action.templateContent = stack_template_option.get_templateContent() action.timeout = 240000 test_util.action_logger('update stack template [name:] %s' % stack_template_option.get_name()) evt = account_operations.execute_action_with_session(action, session_uuid) return evt.inventory action = api_actions.DeleteInstanceOfferingAction() action.uuid = instance_offering_uuid test_util.action_logger('Delete Instance Offering [uuid:] %s' \ % instance_offering_uuid) evt = account_operations.execute_action_with_session(action, session_uuid) return evt