mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 12:08:34 +01:00
change: state attribute to bool-changed
This commit is contained in:
@@ -37,9 +37,9 @@ if __name__ == "__main__":
|
|||||||
size = int(p.stdout.split("\n")[-2].split("\t")[0])
|
size = int(p.stdout.split("\n")[-2].split("\t")[0])
|
||||||
|
|
||||||
if currentSize and currentSize == size:
|
if currentSize and currentSize == size:
|
||||||
result = { "state" : "ok", "old" : currentSize, "new" : size }
|
result = { "changed" : False, "old" : currentSize, "new" : size }
|
||||||
else:
|
else:
|
||||||
result = { "state" : "changed", "old" : currentSize, "new" : size }
|
result = { "changed" : True, "old" : currentSize, "new" : size }
|
||||||
|
|
||||||
|
|
||||||
if args.save_new_size:
|
if args.save_new_size:
|
||||||
|
|||||||
Reference in New Issue
Block a user