'Returns group with name if it exists otherwise returns None'

def get_group_or_none(self, name):

    try:
        return self.get_security_group(name)
    except exception.SecurityGroupDoesNotExist:
        pass
