From 331d0975a8751483b35eeda685d91fa799f098a9 Mon Sep 17 00:00:00 2001 From: Lv Fumei Date: Tue, 21 Jun 2016 11:47:28 +0800 Subject: [PATCH] Modify nested_level from dict to integer In function create_nested_snapshots_and_attach_volume, nested_level's default value is 1, and it is used to operate with an integer (for i in range(nested_level - 1):). Change-Id: I4879d7cdcb5a56b83a1415c4a8fc427241ddc913 Closes-Bug: #1594656 --- ...e.json => create-nested-snapshots-and-attach-volume.json} | 5 +---- ...e.yaml => create-nested-snapshots-and-attach-volume.yaml} | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) rename samples/tasks/scenarios/cinder/{create_nested_snapshots_and_attach_volume.json => create-nested-snapshots-and-attach-volume.json} (88%) rename samples/tasks/scenarios/cinder/{create_nested_snapshots_and_attach_volume.yaml => create-nested-snapshots-and-attach-volume.yaml} (88%) diff --git a/samples/tasks/scenarios/cinder/create_nested_snapshots_and_attach_volume.json b/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.json similarity index 88% rename from samples/tasks/scenarios/cinder/create_nested_snapshots_and_attach_volume.json rename to samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.json index d2f72c7c05..faf5a2bea8 100644 --- a/samples/tasks/scenarios/cinder/create_nested_snapshots_and_attach_volume.json +++ b/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.json @@ -7,10 +7,7 @@ "min": 1, "max": 5 }, - "nested_level": { - "min": 5, - "max": 10 - } + "nested_level": 5 }, "runner": { "type": "constant", diff --git a/samples/tasks/scenarios/cinder/create_nested_snapshots_and_attach_volume.yaml b/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.yaml similarity index 88% rename from samples/tasks/scenarios/cinder/create_nested_snapshots_and_attach_volume.yaml rename to samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.yaml index 8320a116ca..bb2184ef52 100644 --- a/samples/tasks/scenarios/cinder/create_nested_snapshots_and_attach_volume.yaml +++ b/samples/tasks/scenarios/cinder/create-nested-snapshots-and-attach-volume.yaml @@ -6,9 +6,7 @@ size: min: 1 max: 5 - nested_level: - min: 5 - max: 10 + nested_level: 5 runner: type: "constant" times: 1