win_reg_stat fix up broken test (#70830)

pull/70842/head
Jordan Borean 4 years ago committed by GitHub
parent 2dd7942073
commit 4d675b6d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -68,20 +68,13 @@
path: HKCU:\{{ test_reg_path }}\nested\nest2 path: HKCU:\{{ test_reg_path }}\nested\nest2
register: actual register: actual
- name: set expected value for reg key without sub keys or properties
set_fact:
expected:
changed: false
exists: true
failed: false
properties: {}
sub_keys: []
register: expected
- name: assert get known reg key without sub keys and properties - name: assert get known reg key without sub keys and properties
assert: assert:
that: that:
- actual == expected - not actual is changed
- actual.exists
- actual.properties == {}
- actual.sub_keys == []
- name: get non-existent reg key - name: get non-existent reg key
win_reg_stat: win_reg_stat:

Loading…
Cancel
Save