Allow to get a disabled alarm

This change allow to get a disabled alarm.

To do this, it:
* add the ability to query the alarm-list API with the 'enabled' fields.
* change the default visibility of alarm-list API from enabled only to all.

Fixes bug #1231328

Change-Id: I80cd691696f7630d2ac9e9b2a69b5b0ae5ee7968
This commit is contained in:
Mehdi Abaakouk
2013-09-26 11:53:01 +02:00
parent c88d7eb3dd
commit 3cfac4c51a
9 changed files with 61 additions and 16 deletions

View File

@@ -597,7 +597,7 @@ class Connection(base.Connection):
repeat_actions=row.repeat_actions)
def get_alarms(self, name=None, user=None,
project=None, enabled=True, alarm_id=None, pagination=None):
project=None, enabled=None, alarm_id=None, pagination=None):
"""Yields a lists of alarms that match filters
:param user: Optional ID for user that owns the resource.
:param project: Optional ID for project that owns the resource.