Clean imports in code
In some part in the code we import objects. In the Openstack style guidelines they recommend to import only modules. [1]: "Do not import objects, only modules". [1] https://docs.openstack.org/hacking/0.10.3/ Change-Id: I55ec09ba2977a973d384d6387958ec0972f581ec
This commit is contained in:
parent
6b127cb2bc
commit
23d531ed04
@ -15,10 +15,10 @@
|
||||
#
|
||||
|
||||
|
||||
from ansiblelint import AnsibleLintRule
|
||||
import ansiblelint
|
||||
|
||||
|
||||
class YAMLdictchecker(AnsibleLintRule):
|
||||
class YAMLdictchecker(ansiblelint.AnsibleLintRule):
|
||||
id = 'OSA0001'
|
||||
shortdesc = 'Please use ":" YAML dictionary format instead of "="'
|
||||
description = 'Please follow YAML dictionary format while creating'
|
||||
|
Loading…
Reference in New Issue
Block a user