Commit 249d2597 authored by Nikos Skalkotos's avatar Nikos Skalkotos

Fix a bug in the "Exclude" menu entry

Check if the deployment task list is empty. If this is the case, a
message should be printed to the user. If we try to initialize the
dialog menu with an empty choices list, the program will crash.
parent 0dc81291
......@@ -647,6 +647,10 @@ def exclude_tasks(session):
displayed_index += 1
index += 1
if len(choices) == 0:
d.msgbox("No configuration tasks available", width=WIDTH)
return True
while 1:
text = "Please choose which configuration tasks you would like to " \
"prevent from running during image deployment. " \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment