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: If31aa24f74db73ab925f6568d3c8653228b6e9c6
This commit is contained in:
Nguyen Hung Phuong 2018-01-30 14:29:56 +07:00
parent 27c189f0f3
commit 8415a4c4e1
1 changed files with 4 additions and 4 deletions

View File

@ -14,14 +14,14 @@
import os
import sys
from cStringIO import StringIO
import cStringIO
def _get_cli_output():
stdout_org = sys.stdout
sys.stdout = output = StringIO()
from manilaclient.shell import OpenStackManilaShell
shell = OpenStackManilaShell()
sys.stdout = output = cStringIO.StringIO()
from manilaclient import shell
shell = shell.OpenStackManilaShell()
shell.main(None)
sys.stdout = stdout_org
output.seek(0)