Skip to content
Permalink
Browse files

Add --no-access-key option

Closes #19
  • Loading branch information...
sorah committed Sep 24, 2018
1 parent 2123822 commit 56a2274773102a169eb353cb386547c6e44c2559
Showing with 2 additions and 1 deletion.
  1. +1 −0 bin/miam
  2. +1 −1 lib/miam/client.rb
@@ -54,6 +54,7 @@ ARGV.options do |opt|
opt.on('' , '--target REGEXP') {|v| (options[:target] ||= []) << Regexp.new(v) }
opt.on('' , '--exclude REGEXP') {|v| (options[:exclude] ||= []) << Regexp.new(v) }
opt.on('' , '--ignore-login-profile') { options[:ignore_login_profile] = true }
opt.on('' , '--no-access-key') { options[:no_access_key] = true }
opt.on('' , '--no-color') { options[:color] = false }
opt.on('' , '--no-progress') { options[:no_progress] = true }
opt.on('' , '--debug') { options[:debug] = true }
@@ -91,7 +91,7 @@ def walk_users(expected, actual, group_users)
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)
access_key = @driver.create_access_key(user_name) unless @options[:no_access_key]

if access_key
@password_manager.puts_password(user_name, access_key[:access_key_id], access_key[:secret_access_key])

0 comments on commit 56a2274

Please sign in to comment.
You can’t perform that action at this time.