tools/cpee in cpee-2.1.33 vs tools/cpee in cpee-2.1.34
- old
+ new
@@ -233,10 +233,12 @@
end
names.each do |name|
print "Working on: " + name.to_s + "\r"
res1 = Typhoeus.get(File.join(base,name.to_s,'properties','state','/'))
if res1.success?
- if res1.response_body == 'ready' || res1.response_body == 'stopped'
+ if res1.response_body == 'running'
+ Typhoeus.put(File.join(base,name.to_s,'properties','state','/'), headers: {'Content-Type' => 'application/x-www-form-urlencoded'}, body: "value=stopping")
+ elsif res1.response_body == 'ready' || res1.response_body == 'stopped'
Typhoeus.put(File.join(base,name.to_s,'properties','state','/'), headers: {'Content-Type' => 'application/x-www-form-urlencoded'}, body: "value=abandoned")
end
end
end
puts