Skip to content

Commit

Permalink
- Changed text outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
seriva committed Aug 7, 2019
1 parent 9816f51 commit e419c70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/src/epicli/cli/engine/TerraformCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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}"')
4 changes: 2 additions & 2 deletions core/src/epicli/cli/engine/azure/AzureCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e419c70

Please sign in to comment.