openshift: match on objecttype for project delete
This was a typo in 0acb753.
This commit is contained in:
parent
13dd31da04
commit
e4cfcb55e8
1 changed files with 2 additions and 2 deletions
|
@ -2,13 +2,13 @@
|
|||
file:
|
||||
path=/etc/openshift_apps/{{app}}/{{objectname}}
|
||||
state=absent
|
||||
when: objectname != 'project'
|
||||
when: objecttype != 'project'
|
||||
|
||||
- name: Delete project files ({{tmpfile.path}})
|
||||
file:
|
||||
path=/etc/openshift_apps/{{app}}
|
||||
state=absent
|
||||
when: objectname == 'project'
|
||||
when: objecttype == 'project'
|
||||
|
||||
- name: Call `oc delete` on the object
|
||||
shell: oc -n {{app}} delete {{objecttype}}/{{objectname}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue