Adding workspace deletion.
This commit is contained in:
parent
01e3dbb05a
commit
70920d828c
1 changed files with 10 additions and 1 deletions
|
@ -407,6 +407,15 @@ class Terraform(object):
|
|||
|
||||
return self.cmd('workspace new ' + workspace)
|
||||
|
||||
def delete_workspace(self, workspace):
|
||||
"""
|
||||
delete workspace
|
||||
:param workspace: the desired workspace.
|
||||
:return: status
|
||||
"""
|
||||
|
||||
return self.cmd('workspace delete ' + workspace)
|
||||
|
||||
def show_workspace(self):
|
||||
"""
|
||||
show workspace
|
||||
|
|
Loading…
Reference in a new issue