> @@ -100,8 +100,12 @@ public NodeMetadata apply(ServerInZone serverInZone) { > builder.hostname(from.getName()); > builder.location(from.getHostId() != null ? new > LocationBuilder().scope(LocationScope.HOST).id(from.getHostId()) > .description(from.getHostId()).parent(zone).build() : zone); > + if (from.getMetadata().get("jclouds-group") != null) { > + builder.group(from.getMetadata().get("jclouds-group")); > + } else { > + > builder.group(nodeNamingConvention.groupInUniqueNameOrNull(from.getName())); > + }
This pattern crops up in a couple of places...extract into a helper or utility method somewhere..? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/206/files#r7710455