Browse Source

Fix: InvalidParameterValue Exception not raised correctly

InvalidParameterValue Exception was not properly raised which
resulted in Error 500.

Change-Id: I760f4596b8a06ad6eb7eaf7bdf332184e856c22a
Closes-Bug: #1638539
changes/41/394241/1
yatin 5 years ago
parent
commit
05aa0ed632
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      magnum/api/validation.py

+ 1
- 1
magnum/api/validation.py View File

@ -168,7 +168,7 @@ def _enforce_volume_storage_size(cluster_template):
raise exception.InvalidParameterValue(
'docker volume size %s GB is not valid, '
'expecting minimum value 3GB for %s storage '
'driver.') % (volume_size, storage_driver)
'driver.' % (volume_size, storage_driver))
def validate_cluster_properties(delta):


Loading…
Cancel
Save