Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Add all attributes to Service model #117

Merged
merged 1 commit into from
Jun 6, 2016
Merged

Conversation

jderrett
Copy link
Contributor

Fixing #111 by adding attributes to Service model and also providing a list_services() method for starters.

@@ -416,10 +417,14 @@ def list_alerts(self, active_only=True, **query_props):
resp = self._mexe("alerts", query_props=query_props)
alerts = self._parse(resp, "alerts", Alert)
if active_only:
return list(filter(lambda a: a.active, alerts))
return [a for a in alerts if a.active]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@jderrett jderrett merged commit 0321e34 into master Jun 6, 2016
@jderrett jderrett deleted the feature/service_attributes branch June 6, 2016 13:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants