]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: swift.py: tweak imports 15871/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:45:26 +0000 (12:45 +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 ed08ab73764b1866f0af70db311642cdb17be6e3..d57649f837d7c0a6acd5f36a2e9617e514b11c09 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__)