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:
parent
27c189f0f3
commit
8415a4c4e1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user