lib/miam/client.rb in miam-0.1.0.beta vs lib/miam/client.rb in miam-0.1.0

- old
+ new

@@ -51,10 +51,11 @@ expected.each do |user_name, expected_attrs| actual_attrs = actual.delete(user_name) if actual_attrs + updated = walk_path(:user, user_name, expected_attrs[:path], actual_attrs[:path]) || updated updated = walk_user(user_name, expected_attrs, actual_attrs) || updated else actual_attrs = @driver.create_user(user_name, expected_attrs) access_key = @driver.create_access_key(user_name) @@ -81,10 +82,10 @@ end def walk_user(user_name, expected_attrs, actual_attrs) updated = walk_login_profile(user_name, expected_attrs[:login_profile], actual_attrs[:login_profile]) updated = walk_user_groups(user_name, expected_attrs[:groups], actual_attrs[:groups]) || updated - walk_policies(:user, user_name, expected_attrs[:policies], actual_attrs[:policies]) + walk_policies(:user, user_name, expected_attrs[:policies], actual_attrs[:policies]) || updated end def walk_login_profile(user_name, expected_login_profile, actual_login_profile) updated = false