]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: swift.py: tweak imports 15869/head
authorNathan Cutler <ncutler@suse.com>
Sun, 25 Jun 2017 10:42:36 +0000 (12:42 +0200)
committerNathan Cutler <ncutler@suse.com>
Sun, 25 Jun 2017 10:44:48 +0000 (12:44 +0200)
The ".." form only works within the teuthology repo. With swift.py now in the
Ceph repo, we have to be explicit.

Error message was: "ValueError: Attempted relative import beyond toplevel
package

Signed-off-by: Nathan Cutler <ncutler@suse.com>
qa/tasks/swift.py

index f6a0972d77fc91eba431ecbf00d4aa65bb2a8191..28f75dd0afde99135ffb621f3c88e5e56331a4be 100644 (file)
@@ -1,5 +1,5 @@
 """
-Test Swfit api.
+Test Swift API
 """
 from cStringIO import StringIO
 from configobj import ConfigObj
@@ -10,9 +10,9 @@ import os
 
 from teuthology import misc as teuthology
 from teuthology import contextutil
-from ..config import config as teuth_config
-from ..orchestra import run
-from ..orchestra.connection import split_user
+from teuthology.config import config as teuth_config
+from teuthology.orchestra import run
+from teuthology.orchestra.connection import split_user
 
 log = logging.getLogger(__name__)