summaryrefslogtreecommitdiffstats
path: root/cloudmasterd
diff options
context:
space:
mode:
Diffstat (limited to 'cloudmasterd')
-rw-r--r--cloudmasterd/lib/cloudmasterd.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudmasterd/lib/cloudmasterd.rb b/cloudmasterd/lib/cloudmasterd.rb
index ce4513b..7ea6038 100644
--- a/cloudmasterd/lib/cloudmasterd.rb
+++ b/cloudmasterd/lib/cloudmasterd.rb
@@ -266,8 +266,7 @@ def sync_state
Cloudmasterd::Models::Machine.find(:all).each do |machine|
if current_state.has_key?(machine.name) then
# We have a current state match for this machine
- machine.update_attribute(:state, current_state[machine.name][:state])
- machine.update_attribute(:cloud, current_state[machine.name][:cloud])
+ machine.update_attributes(:cloud => current_state[machine.name][:cloud], :state => current_state[machine.name][:state])
# Delete the key so we can determine unaccounted for machines
current_state.delete(machine.name)