From a14fde5e5cb5f4fe69fa383c481aee841e37b853 Mon Sep 17 00:00:00 2001 From: Naoki Kosaka Date: Mon, 30 Sep 2019 11:05:01 +0900 Subject: [PATCH] Prevent error when use json IAMfile. --- lib/miam/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])