sgInRules=[] sgInRules = permission[\'UserIdGroupPairs\'] if permission[\'ipProtocol\'] == \'-1\' and not sgInRules: logging.debug("Per