Skip to content

Commit

Permalink
Changed "image_family" check to use "unless" instead of "if not" logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-raney-physiq committed Sep 23, 2017
1 parent cdeb6db commit b6bbc3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-google/action/run_instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def call(env) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
service_accounts = zone_config.service_accounts

# If image_family is set, get the latest image image from the family.
if !image_family.nil?
unless image_family.nil?
image = env[:google_compute].images.get_from_family(image_family).name
end

Expand Down

0 comments on commit b6bbc3f

Please sign in to comment.