summaryrefslogtreecommitdiffstats
path: root/cloudmasterd
diff options
context:
space:
mode:
authorroot <root@hackathon1-repo.usersys.redhat.com>2008-06-20 15:16:52 -0400
committerroot <root@hackathon1-repo.usersys.redhat.com>2008-06-20 15:16:52 -0400
commitf8648f1f0e918452ba35ce51f96b8df71a39baa3 (patch)
tree99779c326fbfa81732848d4d9a64a2de53941015 /cloudmasterd
parentf6e6188f4bc76352539c5e3475f0338d1bddcb44 (diff)
downloadtools-f8648f1f0e918452ba35ce51f96b8df71a39baa3.tar.gz
tools-f8648f1f0e918452ba35ce51f96b8df71a39baa3.tar.xz
tools-f8648f1f0e918452ba35ce51f96b8df71a39baa3.zip
Added .chomp() to the call to func-find-resources in order to trim any trailing whitespace
Diffstat (limited to 'cloudmasterd')
-rw-r--r--cloudmasterd/lib/cloudmasterd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudmasterd/lib/cloudmasterd.rb b/cloudmasterd/lib/cloudmasterd.rb
index c87e682..bddba15 100644
--- a/cloudmasterd/lib/cloudmasterd.rb
+++ b/cloudmasterd/lib/cloudmasterd.rb
@@ -89,7 +89,7 @@ module Cloudmasterd::Controllers
# Find the best host on which to create a VM that requires
# the given "disk_size" and "ram"
def _get_best_host(disk_size, ram)
- return `func-find-resources -m #{ram}`
+ return `func-find-resources -m #{ram}`.chomp()
end
# run the appropriate koan command to create the given "fqdn"