From e419c70075a748e37ee9a2cf636ad5cf9b2ec63e Mon Sep 17 00:00:00 2001 From: Luuk van Venrooij Date: Wed, 7 Aug 2019 16:54:12 +0200 Subject: [PATCH] - Changed text outputs --- core/src/epicli/cli/engine/TerraformCommand.py | 6 +++--- core/src/epicli/cli/engine/azure/AzureCommand.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/epicli/cli/engine/TerraformCommand.py b/core/src/epicli/cli/engine/TerraformCommand.py index 96df16ee11..a97656e9b7 100644 --- a/core/src/epicli/cli/engine/TerraformCommand.py +++ b/core/src/epicli/cli/engine/TerraformCommand.py @@ -33,7 +33,7 @@ def run(self, command, env, auto_approve=False): cmd.append('--auto-approve') if command == self.APPLY_COMMAND: - cmd.append('-state=' + self.working_directory + '/terraform.tfstate') + cmd.append(f'-state={self.working_directory}/terraform.tfstate') cmd.append(self.working_directory) @@ -46,6 +46,6 @@ def run(self, command, env, auto_approve=False): logpipe.close() if sp.returncode != 0: - raise Exception('Error running: "' + cmd + '"') + raise Exception(f'Error running: "{cmd}"') else: - self.logger.info('Done running "' + cmd + '"') + self.logger.info(f'Done running "{cmd}"') diff --git a/core/src/epicli/cli/engine/azure/AzureCommand.py b/core/src/epicli/cli/engine/azure/AzureCommand.py index 9917aa50cc..4ace7093de 100644 --- a/core/src/epicli/cli/engine/azure/AzureCommand.py +++ b/core/src/epicli/cli/engine/azure/AzureCommand.py @@ -43,7 +43,7 @@ def run(self, cmd): output = {} if sp.returncode != 0: - raise Exception('Error running: "' + cmd + '"') + raise Exception(f'Error running: "{cmd}"') else: - self.logger.info('Done running "' + cmd + '"') + self.logger.info(f'Done running "{cmd}"') return output