Merge "Replace deprecated LOG.warn with warning"
This commit is contained in:
commit
31ae064982
@ -13,6 +13,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from rally.common.i18n import _LW
|
||||||
from rally.common import logging
|
from rally.common import logging
|
||||||
from rally import consts
|
from rally import consts
|
||||||
from rally.plugins.openstack import scenario
|
from rally.plugins.openstack import scenario
|
||||||
@ -54,8 +55,8 @@ class NovaFlavors(utils.NovaScenario):
|
|||||||
# NOTE(pirsriva): access rules can be listed
|
# NOTE(pirsriva): access rules can be listed
|
||||||
# only for non-public flavors
|
# only for non-public flavors
|
||||||
if kwargs.get("is_public", False):
|
if kwargs.get("is_public", False):
|
||||||
LOG.warn("is_public cannot be set to True for listing flavor "
|
LOG.warning(_LW("is_public cannot be set to True for listing "
|
||||||
"access rules. Setting is_public to False")
|
"flavor access rules. Setting is_public to False"))
|
||||||
kwargs["is_public"] = False
|
kwargs["is_public"] = False
|
||||||
flavor = self._create_flavor(ram, vcpus, disk, **kwargs)
|
flavor = self._create_flavor(ram, vcpus, disk, **kwargs)
|
||||||
self._list_flavor_access(flavor.id)
|
self._list_flavor_access(flavor.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user