pep8 compliance for openstacK_vms.py

This commit is contained in:
David Wahlstrom 2015-06-03 07:32:55 -07:00
parent 6a63df5a72
commit 9134880d55

View File

@ -17,11 +17,11 @@ class Openstack_vms(IntervalModule):
("password", "Password for Openstack authentication (OS_PASSWORD)"), ("password", "Password for Openstack authentication (OS_PASSWORD)"),
("tenant_name", "Tenant/Project name to view (OS_TENANT_NAME)"), ("tenant_name", "Tenant/Project name to view (OS_TENANT_NAME)"),
("color", "Display color when non-active VMs are =< `threshold` " ("color", "Display color when non-active VMs are =< `threshold` "
"(default: #00FF00"), "(default: #00FF00"),
("crit_color", "Display color when non-active VMs are => `threshold` " ("crit_color", "Display color when non-active VMs are => `threshold` "
"(default: #FF0000"), "(default: #FF0000"),
("threshold", "Set critical indicators when non-active VM pass this " ("threshold", "Set critical indicators when non-active VM pass this "
"number (default: 0)"), "number (default: 0)"),
("horizon_url", "When clicked, open this URL in a browser") ("horizon_url", "When clicked, open this URL in a browser")
) )
required = ("auth_url", "password", "tenant_name", "username") required = ("auth_url", "password", "tenant_name", "username")
@ -29,7 +29,8 @@ class Openstack_vms(IntervalModule):
crit_color = "#FF0000" crit_color = "#FF0000"
threshold = 0 threshold = 0
horizon_url = None horizon_url = None
format = "{tenant_name}: {active_servers} active, {nonactive_servers} non-active" format = "{tenant_name}: {active_servers} active, "\
"{nonactive_servers} non-active"
on_leftclick = "openurl" on_leftclick = "openurl"