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