Revision e482b7f9 image_creator/dialog_main.py

b/image_creator/dialog_main.py
101 101
                   "image": image,
102 102
                   "metadata": metadata}
103 103

  
104
        if hasattr(image, "unsupported"):
105

  
106
            session['excluded_tasks'] = [-1]
107
            session['task_metadata'] = ["EXCLUDE_ALL_TASKS"]
108

  
109
            msg = "The system on the input media is not supported." \
110
                "\n\nReason: %s\n\n" \
111
                "We highly recommend not to create an image out of this, " \
112
                "since the image won't be cleaned up and you will not be " \
113
                "able to configure it during the deployment. Press <YES> if " \
114
                "you still want to continue with the image creation process." \
115
                % image.unsupported
116

  
117
            if not d.yesno(msg, width=WIDTH, defaultno=1, height=12):
118
                main_menu(session)
119

  
120
            d.infobox("Thank you for using snf-image-creator. Bye", width=53)
121
            return 0
122

  
104 123
        msg = "snf-image-creator detected a %s system on the input media. " \
105 124
              "Would you like to run a wizard to assist you through the " \
106 125
              "image creation process?\n\nChoose <Wizard> to run the wizard," \

Also available in: Unified diff