lib/boxgrinder-build/plugins/delivery/elastichosts/elastichosts-plugin.rb in boxgrinder-build-0.10.0 vs lib/boxgrinder-build/plugins/delivery/elastichosts/elastichosts-plugin.rb in boxgrinder-build-0.10.1

- old
+ new

@@ -50,11 +50,11 @@ end def hash_to_request(h) body = "" - h.each do |k, v| + h.sort.each do |k, v| body << "#{k} #{v.to_s}\n" end body end @@ -203,10 +203,10 @@ ret = response_to_hash(RestClient.post(api_url(path), body)) @log.info "Server was registered with '#{ret['name']}' name as '#{ret['server']}' UUID. Use web UI or API tools to start your server." rescue => e @log.error e.info - raise PluginError, "An error occured while creating the server, #{e.message}. See logs for more info." + raise PluginError, "An error occurred while creating the server, #{e.message}. See logs for more info." end end end end