From 23d531ed04503d3d9aec2cbf963357e043e2a17c Mon Sep 17 00:00:00 2001 From: Nguyen Hung Phuong Date: Wed, 31 Jan 2018 09:16:18 +0700 Subject: [PATCH] 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 --- ansible-lint/YAMLdictchecker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible-lint/YAMLdictchecker.py b/ansible-lint/YAMLdictchecker.py index 41b44d8c..cc1acd63 100755 --- a/ansible-lint/YAMLdictchecker.py +++ b/ansible-lint/YAMLdictchecker.py @@ -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'