From 6fbc648f75bcbfe5b1c0b3e95f62bd6d42232b75 Mon Sep 17 00:00:00 2001 From: Nicolas Boutet Date: Wed, 8 May 2019 10:02:54 +0200 Subject: [PATCH] Fix CS --- bin/check-ebs-burst-limit.rb | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/bin/check-ebs-burst-limit.rb b/bin/check-ebs-burst-limit.rb index caef6842..d50b3a02 100755 --- a/bin/check-ebs-burst-limit.rb +++ b/bin/check-ebs-burst-limit.rb @@ -82,18 +82,14 @@ def run Aws.config[:region] = my_instance_az.chop my_instance_id = Net::HTTP.get(URI.parse('http://169.254.169.254/latest/meta-data/instance-id')) volume_filters.push( - { - name: 'attachment.instance-id', - values: [my_instance_id] - } + name: 'attachment.instance-id', + values: [my_instance_id] ) else # The -s option was not specified, look at all volumes which are attached - volume_filters.push( - { - name: 'attachment.status', - values: ['attached'] - } + volume_filters.push( + name: 'attachment.status', + values: ['attached'] ) end