From 8353ecc905672abfeff9873b36428b87c7cab827 Mon Sep 17 00:00:00 2001 From: Sergey Skripnick Date: Thu, 13 Aug 2015 16:06:56 +0200 Subject: [PATCH] Add FilePathOrUrlType This type does check whether is path or url passed, check if file available and perform os.path.expanduser if needed. Change-Id: I2551fbf90b1180ec9246478ee6ed64938b52d923 --- rally/plugins/openstack/scenarios/glance/images.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rally/plugins/openstack/scenarios/glance/images.py b/rally/plugins/openstack/scenarios/glance/images.py index ebe612e1..80fd3486 100644 --- a/rally/plugins/openstack/scenarios/glance/images.py +++ b/rally/plugins/openstack/scenarios/glance/images.py @@ -27,6 +27,7 @@ class GlanceImages(utils.GlanceScenario, nova_utils.NovaScenario): RESOURCE_NAME_PREFIX = "rally_image_" RESOURCE_NAME_LENGTH = 16 + @types.set(image_location=types.FilePathOrUrlType) @validation.required_services(consts.Service.GLANCE) @validation.required_openstack(users=True) @scenario.configure(context={"cleanup": ["glance"]})