Update to_version field to return all kube versions
In this commit, the to_version field was updated to return all kube versions and allow the user to install older versions. Test Case (Pending) Closes-bug: 2043514 Change-Id: I72d5edd33188935e706649c8561b0d6eb7b9b6c6 Signed-off-by: Christopher Souza <Christopher.DeOliveiraSouza@windriver.com>
This commit is contained in:
parent
e4c24875c0
commit
c026c97713
|
@ -262,9 +262,11 @@ class CreateCloudStrategyForm(forms.SelfHandlingForm):
|
|||
if k.state == "active":
|
||||
version = [(k.version, '--')]
|
||||
kube_versions[:0] = version
|
||||
if k.state != "unavailable":
|
||||
version = [(k.version, k.version + " - " + k.state)]
|
||||
kube_versions.extend(version)
|
||||
else:
|
||||
version = [(k.version, k.version)]
|
||||
kube_versions.extend(version)
|
||||
self.fields['to_version'].choices = kube_versions
|
||||
|
||||
release_list = []
|
||||
|
|
Loading…
Reference in New Issue