diff --git a/lib/miam/client.rb b/lib/miam/client.rb index ecd6b1f..c173d1e 100644 --- a/lib/miam/client.rb +++ b/lib/miam/client.rb @@ -61,7 +61,7 @@ def apply(file) def walk(file) expected = load_file(file) - @options[:exclude] += expected[:exclude] + @options[:exclude] += expected[:exclude] unless expected[:exclude].nil? actual, group_users, instance_profile_roles = Miam::Exporter.export(@iam, @options) updated = pre_walk_managed_policies(expected[:policies], actual[:policies])