Skip to content

Commit 2e24af7

Browse files
sarahbxjtaleric
authored andcommitted
Move update resource state for vm back into vm block
1 parent 62ea9b7 commit 2e24af7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

roles/uperf/tasks/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,17 +256,17 @@
256256
command: "redis-cli get clients-{{ trunc_uuid }}"
257257
register: clients_ready_count
258258

259-
when: resource_kind == "vm"
259+
- name: Update resource state
260+
operator_sdk.util.k8s_status:
261+
api_version: ripsaw.cloudbulldozer.io/v1alpha1
262+
kind: Benchmark
263+
name: "{{ meta.name }}"
264+
namespace: "{{ operator_namespace }}"
265+
status:
266+
state: Clients Running
267+
when: "workload_args.pair|default('1')|int == clients_ready_count.stdout|int"
260268

261-
- name: Update resource state
262-
operator_sdk.util.k8s_status:
263-
api_version: ripsaw.cloudbulldozer.io/v1alpha1
264-
kind: Benchmark
265-
name: "{{ meta.name }}"
266-
namespace: "{{ operator_namespace }}"
267-
status:
268-
state: Clients Running
269-
when: "workload_args.pair|default('1')|int == clients_ready_count.stdout|int"
269+
when: resource_kind == "vm"
270270

271271
when: resource_state.resources[0].status.state == "Waiting for Clients"
272272

0 commit comments

Comments
 (0)