lib/cpee/implementation.rb in cpee-2.0.11 vs lib/cpee/implementation.rb in cpee-2.0.13

- old
+ new

@@ -225,10 +225,10 @@ multi.sadd("instance:#{id}/handlers/#{key}",c) multi.sadd("instance:#{id}/handlers/#{c}",key) end end rescue nil # all the ones that are not ok, are ignored end - multi.set(File.join(instance, 'attributes', 'uuid'), SecureRandom.uuid) + multi.set(File.join(instance, 'attributes', 'uuid'), uuid) multi.zadd(File.join(instance, 'attributes'), -2, 'uuid') multi.set(File.join(instance, 'attributes', 'info'), name) multi.zadd(File.join(instance, 'attributes'), -1, 'info') multi.set(File.join(instance, 'state', '@changed'), Time.now.xmlschema(3)) end