public void updateOnAdded()

in commands/src/main/java/org/jclouds/karaf/commands/compute/completer/GroupCompleter.java [36:50]


   public void updateOnAdded(ComputeService computeService) {
      if (computeService != null) {
         Set<? extends ComputeMetadata> computeMetadatas = computeService.listNodes();
         if (computeMetadatas != null) {
            for (ComputeMetadata compute : computeMetadatas) {
               NodeMetadata node = (NodeMetadata) compute;
               if (apply(node)) {
                 for (String cacheKey : ServiceHelper.findCacheKeysForService(computeService)) {
                   cache.put(cacheKey, node.getGroup());
                 }
               }
            }
         }
      }
   }