From 29daa9c40a597c055a9a800aa48e72d39f0543ad Mon Sep 17 00:00:00 2001 From: DJDavisson Date: Fri, 31 May 2019 11:31:30 -0700 Subject: [PATCH] Modifying returns to use proper format. --- python_terraform/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python_terraform/__init__.py b/python_terraform/__init__.py index 64be9e7..a41e123 100644 --- a/python_terraform/__init__.py +++ b/python_terraform/__init__.py @@ -396,7 +396,7 @@ class Terraform(object): :return: status """ - return self.cmd('workspace select ' + workspace) + return self.cmd('workspace' ,'select', workspace) def create_workspace(self, workspace): """ @@ -405,7 +405,7 @@ class Terraform(object): :return: status """ - return self.cmd('workspace new ' + workspace) + return self.cmd('workspace', 'new', workspace) def delete_workspace(self, workspace): """ @@ -414,7 +414,7 @@ class Terraform(object): :return: status """ - return self.cmd('workspace delete ' + workspace) + return self.cmd('workspace', 'delete', workspace) def show_workspace(self): """ @@ -422,7 +422,7 @@ class Terraform(object): :return: workspace """ - return self.cmd('workspace show') + return self.cmd('workspace' 'show') def __exit__(self, exc_type, exc_value, traceback): self.temp_var_files.clean_up()