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:
Nguyen Hung Phuong 2018-01-31 09:16:18 +07:00
parent 6b127cb2bc
commit 23d531ed04
1 changed files with 2 additions and 2 deletions

View File

@ -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'