added code to deal with gnos repo not assigned situation, unlikely but if it happens the script will not error out