Revision effda5db image_creator/dialog_util.py

b/image_creator/dialog_util.py
180 180
def _check_cloud(session, name, description, url, token):
181 181
    """Checks if the provided info for a cloud are valid"""
182 182
    d = session['dialog']
183
    regexp = re.compile('^[a-zA-Z0-9_]+$')
183
    regexp = re.compile('^[~@#$:\-\w]+$')
184 184

  
185 185
    if not re.match(regexp, name):
186
        d.msgbox("Allowed characters for name: [a-zA-Z0-9_]", width=WIDTH)
186
        d.msgbox("Allowed characters for name: a-zA-Z0-9_~@#$:-", width=WIDTH)
187 187
        return False
188 188

  
189 189
    if len(url) == 0:

Also available in: Unified diff