From 3e5e09f406f8b0bdb76ec272daf924ccc11139b5 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Tue, 14 Feb 2012 21:54:31 +0100 Subject: [PATCH] formatting bug when image not found --- .../cloudservers/compute/functions/ServerToNodeMetadata.java | 2 +- .../openstack/nova/compute/functions/ServerToNodeMetadata.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/compute/functions/ServerToNodeMetadata.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/compute/functions/ServerToNodeMetadata.java index 8380930236..856e952df6 100644 --- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/compute/functions/ServerToNodeMetadata.java +++ b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/compute/functions/ServerToNodeMetadata.java @@ -132,7 +132,7 @@ public class ServerToNodeMetadata implements Function { try { return Iterables.find(images.get(), new FindImageForServer(from)).getOperatingSystem(); } catch (NoSuchElementException e) { - logger.warn("could not find a matching image for server %s in location %s", from, location); + logger.warn("could not find a matching image for server %s in location %s", from, location.get()); } return null; } diff --git a/apis/nova/src/main/java/org/jclouds/openstack/nova/compute/functions/ServerToNodeMetadata.java b/apis/nova/src/main/java/org/jclouds/openstack/nova/compute/functions/ServerToNodeMetadata.java index 42955b7348..ab609777f1 100644 --- a/apis/nova/src/main/java/org/jclouds/openstack/nova/compute/functions/ServerToNodeMetadata.java +++ b/apis/nova/src/main/java/org/jclouds/openstack/nova/compute/functions/ServerToNodeMetadata.java @@ -135,7 +135,7 @@ public class ServerToNodeMetadata implements Function { try { return Iterables.find(images.get(), new FindImageForServer(from)); } catch (NoSuchElementException e) { - logger.warn("could not find a matching image for server %s in location %s", from, location); + logger.warn("could not find a matching image for server %s in location %s", from, location.get()); } return null; }