def get_groupnames(self, sgs):
        """Get servicegroups list

        :return: comma separated list of servicegroups
        :rtype: str
        """
        return ','.join([sgs[sg].get_name() for sg in self.servicegroups])