diff options
author | Lennart Regebro <lregebro@redhat.com> | 2014-10-15 17:30:55 +0200 |
---|---|---|
committer | Lennart Regebro <lregebro@redhat.com> | 2014-10-15 17:30:55 +0200 |
commit | ed43913e8e479bd22670d1bb0e6d21a50eedd4ed (patch) | |
tree | 6507fbabd207cfc33fee1306cb1ffb78c47d27ce | |
parent | 3620048167031189ec77d23268719b47585b6250 (diff) | |
download | tuskar-ui-ed43913e8e479bd22670d1bb0e6d21a50eedd4ed.tar.gz |
Roles must have an image before deploying
If roles does not have an image it may or may not work.
That will be confusing for the user.
Change-Id: I08dc33537d7c6e15a9218781e5977bbc212aea6d
-rw-r--r-- | tuskar_ui/infrastructure/overview/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tuskar_ui/infrastructure/overview/forms.py b/tuskar_ui/infrastructure/overview/forms.py index 43bd341b..8336028a 100644 --- a/tuskar_ui/infrastructure/overview/forms.py +++ b/tuskar_ui/infrastructure/overview/forms.py @@ -69,7 +69,7 @@ def validate_plan(request, plan): if role.image(plan) is None: messages.append({ 'text': _(u"Role {0} has no image.").format(role.name), - 'is_critical': False, + 'is_critical': True, 'link_url': reverse_lazy('horizon:infrastructure:roles:index'), 'link_label': _(u"Associate this role with an image."), }) |