通过Ansible更新了AWS CLI for EC2会引发boto错误

时间:2016-09-02 19:31:41

标签: python aws-cli

我看到一个奇怪的问题,在将AWS CLI从1.10.1更新到1.10.60后,通过Ansible运行ec2命令不再有效。

即跑步:
>>> # generating a random numpy array ... np_array = numpy.random.randint(0,100,10) >>> np_array 45: array([22, 71, 40, 83, 33, 52, 29, 31, 77, 87]) >>> # Replacing 26 with 30 ... np_array[np_array == 26] = 30 >>> np_array 46: array([22, 71, 40, 83, 33, 52, 29, 31, 77, 87]) >>> # multiplying all the numbers less than 50 by 10 ... np_array[np_array < 50] *= 10 >>> np_array 47: array([220, 71, 400, 83, 330, 52, 290, 310, 77, 87])

...通过Ansible抛出这个堆栈跟踪:    local_action: "shell AWS_PROFILE=dev-aws aws ec2 describe-instances --debug --filters 'Name=instance-state-name,Values=running' 'Name=tag:Role,Values=ms_bastion'"

0 个答案:

没有答案