lib/flapjack/data/entity.rb in flapjack-0.7.12 vs lib/flapjack/data/entity.rb in flapjack-0.7.13

- old
+ new

@@ -85,10 +85,10 @@ @logger.info("Jabber#self.find_all_name_matching - unable to use /#{pattern}/ as a regex pattern: #{e}") end return nil end redis.keys('entity_id:*').inject([]) {|memo, check| - a, entity_name = check.split(':') + a, entity_name = check.split(':', 2) if (entity_name =~ regex) && !memo.include?(entity_name) memo << entity_name end memo }.sort