formatting bug when image not found

This commit is contained in:
Adrian Cole 2012-02-14 21:54:31 +01:00
parent 28b24f2b0d
commit 3e5e09f406
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ public class ServerToNodeMetadata implements Function<Server, NodeMetadata> {
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;
}

View File

@ -135,7 +135,7 @@ public class ServerToNodeMetadata implements Function<Server, NodeMetadata> {
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;
}