Clean imports in code
This patch set modifies lines which are importing objects instead of modules. As per openstack import guide lines, user should import modules in a file not objects. http://docs.openstack.org/developer/hacking/#imports Change-Id: I188257e8b678ccf8fa9d43d32832b574becb0cf7
This commit is contained in:
parent
957cc6412c
commit
15c5191693
|
@ -15,7 +15,7 @@ from debtcollector import removals
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
|
||||||
from aodhclient import utils
|
from aodhclient import utils
|
||||||
from aodhclient.v2.alarm_cli import ALARM_TYPES
|
from aodhclient.v2 import alarm_cli
|
||||||
from aodhclient.v2 import base
|
from aodhclient.v2 import base
|
||||||
|
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ class AlarmManager(base.Manager):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _clean_rules(alarm_type, alarm):
|
def _clean_rules(alarm_type, alarm):
|
||||||
for rule in ALARM_TYPES:
|
for rule in alarm_cli.ALARM_TYPES:
|
||||||
if rule != alarm_type:
|
if rule != alarm_type:
|
||||||
alarm.pop('%s_rule' % rule, None)
|
alarm.pop('%s_rule' % rule, None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue