From 55e48c0a627384a96d4ab0bda1bd83c86089857d Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Mon, 6 Aug 2018 20:32:34 +0200 Subject: [PATCH] Fix: return the flavor ID on autodetection The name was returned incorrectly (and inconsistently with the other possible computation branches). Also, fix a typo in a user-visible string. Change-Id: I799a7239bad28c6c0d44ee399903aa67645aa45a --- config_tempest/flavors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config_tempest/flavors.py b/config_tempest/flavors.py index 79d9590c..8411aed8 100644 --- a/config_tempest/flavors.py +++ b/config_tempest/flavors.py @@ -119,7 +119,7 @@ class Flavors(object): :param flavor_name: [m1.nano, m1.micro] """ LOG.warning("Flavor '%s' not found and creation is not allowed. " - "Tying to autodetect the smallest flavor available.", + "Trying to autodetect the smallest flavor available.", flavor_name) flavors = [] for flavor in self.flavor_list: @@ -139,4 +139,4 @@ class Flavors(object): LOG.warning("Found '%s' flavor (id: '%s', ram: '%s', disk: '%s', " "vcpus: '%s') ", f[0], f[1], f[2], f[3], f[4]) # return flavor's id - return f[0] + return f[1]