]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Move VersionNotFoundError to exceptions module
authorZack Cerza <zack.cerza@inktank.com>
Tue, 30 Sep 2014 19:36:36 +0000 (13:36 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Tue, 30 Sep 2014 19:36:36 +0000 (13:36 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/exceptions.py
teuthology/task/install.py

index 56bb43256e1d36f2036bf6cc858e72556e220cce..573c335ab32befaa2980ded03056105ec3b29f9e 100644 (file)
@@ -77,3 +77,11 @@ class ScheduleFailError(RuntimeError):
             name=self.name,
             msg=self.message,
         ).replace('  ', ' ')
+
+
+class VersionNotFoundError(Exception):
+    def __init__(self, url):
+        self.url = url
+
+    def __str__(self):
+        return "Failed to fetch package version from %s" % self.url
index 91e003abe0c257719cd80bc46ed2bcf0d19aa0ec..c9efc04d620eb31ce12d59b4480deb4703f2d72f 100644 (file)
@@ -9,6 +9,7 @@ import subprocess
 
 from teuthology import misc as teuthology
 from teuthology import contextutil
+from teuthology.exceptions import VersionNotFoundError
 from teuthology.parallel import parallel
 from ..orchestra import run
 from ..orchestra.run import CommandFailedError
@@ -262,15 +263,6 @@ def _get_baseurl(ctx, remote, config):
     return base_url
 
 
-class VersionNotFoundError(Exception):
-
-    def __init__(self, url):
-        self.url = url
-
-    def __str__(self):
-        return "Failed to fetch package version from %s" % self.url
-
-
 def _block_looking_for_package_version(remote, base_url, wait=False):
     """
     Look for, and parse, a file called 'version' in base_url.
@@ -1087,7 +1079,7 @@ def upgrade_common(ctx, config, deploy_style):
             # FIXME: again, make extra_pkgs distro-agnostic
         pkgs += extra_pkgs
         node['project'] = project
-        
+
         deploy_style(ctx, node, remote, pkgs, system_type)