def checkHostname(hostname):
        validString = re.search(r'^(?i)[A-Za-z0-9_-]{%s,%s}$' %(5, 20), hostname)
        #print(validString)
        if (validString == None):
            return False
        else:
            return True
        
#checkRecipe()
#checks that the recipe is defined (i.e., in the list derived from the comma-separated "recipes" string in the config file)
dataset/ETHPy150Open ngageoint/cocreate/ccl-cookbook/files/default/cocreatelite/cocreate/createvm/createvm.py/checkHostname/original