From 68f42475daa447ed9c5d1bb84052b4da48f26f5c Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 15 Jan 2019 16:48:03 -0800 Subject: [PATCH] Chefstyle fixes Signed-off-by: Tim Smith --- lib/chef/knife/cloud/fog/service.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/chef/knife/cloud/fog/service.rb b/lib/chef/knife/cloud/fog/service.rb index f5d1e6d..7620aca 100644 --- a/lib/chef/knife/cloud/fog/service.rb +++ b/lib/chef/knife/cloud/fog/service.rb @@ -45,18 +45,18 @@ def connection def network @network ||= begin Fog::Network.new(@auth_params) - rescue Excon::Error::Unauthorized => e - error_message = "Connection failure, please check your username and password." - ui.fatal(error_message) - raise CloudExceptions::ServiceConnectionError, "#{e.message}. #{error_message}" - rescue Excon::Error::Socket => e - error_message = "Connection failure, please check your authentication URL." - ui.fatal(error_message) - raise CloudExceptions::ServiceConnectionError, "#{e.message}. #{error_message}" - rescue Fog::Errors::NotFound => e - error_message = "No Network service found. This command is unavailable with current cloud." - ui.fatal(error_message) - raise CloudExceptions::NetworkNotFoundError, "#{e.message}. #{error_message}" + rescue Excon::Error::Unauthorized => e + error_message = "Connection failure, please check your username and password." + ui.fatal(error_message) + raise CloudExceptions::ServiceConnectionError, "#{e.message}. #{error_message}" + rescue Excon::Error::Socket => e + error_message = "Connection failure, please check your authentication URL." + ui.fatal(error_message) + raise CloudExceptions::ServiceConnectionError, "#{e.message}. #{error_message}" + rescue Fog::Errors::NotFound => e + error_message = "No Network service found. This command is unavailable with current cloud." + ui.fatal(error_message) + raise CloudExceptions::NetworkNotFoundError, "#{e.message}. #{error_message}" end end