]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
include the os_type in the log message when it's invalid
authorAndrew Schoen <aschoen@redhat.com>
Wed, 17 Dec 2014 15:08:11 +0000 (09:08 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 17 Dec 2014 20:36:40 +0000 (14:36 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
teuthology/lock.py

index 91ddb3bdc96d6488f5c6cfdecc7a6100400a0f7a..42916823844f976480386b00053aa6fb4f5a4d16 100644 (file)
@@ -76,7 +76,7 @@ def vps_version_or_type_valid(machine_type, os_type, os_version):
         return True
     valid_os_and_version = get_distro_from_downburst()
     if os_type not in valid_os_and_version:
-        log.error('os-type is invalid')
+        log.error("os-type '%s' is invalid", os_type)
         return False
     if not validate_distro_version(os_version,
                                    valid_os_and_version[os_type]):