Removing uncessary workspace from __init__ Will add back with some checking in the future.
This commit is contained in:
parent
0228de1a60
commit
64e804e7a0
1 changed files with 6 additions and 7 deletions
|
@ -50,7 +50,7 @@ class Terraform(object):
|
||||||
var_file=None,
|
var_file=None,
|
||||||
terraform_bin_path=None,
|
terraform_bin_path=None,
|
||||||
is_env_vars_included=True,
|
is_env_vars_included=True,
|
||||||
workspace=None):
|
):
|
||||||
"""
|
"""
|
||||||
:param working_dir: the folder of the working folder, if not given,
|
:param working_dir: the folder of the working folder, if not given,
|
||||||
will be current working folder
|
will be current working folder
|
||||||
|
@ -78,7 +78,6 @@ class Terraform(object):
|
||||||
if terraform_bin_path else 'terraform'
|
if terraform_bin_path else 'terraform'
|
||||||
self.var_file = var_file
|
self.var_file = var_file
|
||||||
self.temp_var_files = VariableFiles()
|
self.temp_var_files = VariableFiles()
|
||||||
self.workspace = workspace
|
|
||||||
|
|
||||||
# store the tfstate data
|
# store the tfstate data
|
||||||
self.tfstate = None
|
self.tfstate = None
|
||||||
|
@ -394,7 +393,7 @@ class Terraform(object):
|
||||||
"""
|
"""
|
||||||
set workspace
|
set workspace
|
||||||
:param workspace: the desired workspace.
|
:param workspace: the desired workspace.
|
||||||
:return: nothing
|
:return: status
|
||||||
"""
|
"""
|
||||||
|
|
||||||
options = kwargs
|
options = kwargs
|
||||||
|
@ -404,9 +403,9 @@ class Terraform(object):
|
||||||
|
|
||||||
def create_workspace(self, workspace=None, dir_or_plan=None, **kwargs):
|
def create_workspace(self, workspace=None, dir_or_plan=None, **kwargs):
|
||||||
"""
|
"""
|
||||||
set workspace
|
create workspace
|
||||||
:param workspace: the desired workspace.
|
:param workspace: the desired workspace.
|
||||||
:return: nothing
|
:return: status
|
||||||
"""
|
"""
|
||||||
|
|
||||||
options = kwargs
|
options = kwargs
|
||||||
|
@ -416,8 +415,8 @@ class Terraform(object):
|
||||||
|
|
||||||
def show_workspace(self, dir_or_plan=None, **kwargs):
|
def show_workspace(self, dir_or_plan=None, **kwargs):
|
||||||
"""
|
"""
|
||||||
set workspace
|
show workspace
|
||||||
:return: nothing
|
:return: workspace
|
||||||
"""
|
"""
|
||||||
|
|
||||||
options = kwargs
|
options = kwargs
|
||||||
|
|
Loading…
Reference in a new issue