lib/miam/client.rb in miam-0.2.4.beta6 vs lib/miam/client.rb in miam-0.2.4.beta7

- old
+ new

@@ -127,11 +127,11 @@ login_profile[:password_reset_required] = false end end if expected_login_profile and not actual_login_profile - expected_login_profile[:password] ||= @password_manager.identify(user_name, :login_profile) + expected_login_profile[:password] ||= @password_manager.identify(user_name, :login_profile, @driver.password_policy) @driver.create_login_profile(user_name, expected_login_profile) updated = true elsif not expected_login_profile and actual_login_profile @driver.delete_login_profile(user_name) updated = true @@ -443,10 +443,11 @@ def pre_walk_managed_policies(expected, actual) updated = false expected.each do |policy_name, expected_attrs| + next unless target_matched?(policy_name) actual_attrs = actual.delete(policy_name) if actual_attrs if expected_attrs[:path] != actual_attrs[:path] log(:warn, "ManagedPolicy `#{policy_name}`: 'path' cannot be updated", :color => :yellow) @@ -477,9 +478,10 @@ def post_walk_managed_policies(actual) updated = false actual.each do |policy_name, actual_attrs| + next unless target_matched?(policy_name) @driver.delete_managed_policy(policy_name, actual_attrs[:path]) updated = true end updated