CHAT_OUTPUT_BEGIN
COMMAND_ID=CLUSTER-REFERENCE-PUBLISHER-RESTORE-CLOSEOUT-202
STATUS=FAIL
RC=1
HOST=pve01
MODE=change
COMPONENT=reference-update
REFERENCE_REGISTER_CHECK=OK
REFERENCE_SHA256=5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e
ERROR_REGISTER_CHECK=OK
ERROR_REGISTER_SHA256=08b3a769b8e38eaa1acec915352fb328180d70caa7ff6cd9d1ec0da426262752
COMMAND_SHA256=0b0b393a3aaf4b15f1acdcaf6f35f4c1b0c33e7bdbab88bd5ec1c5113250a4b2
DUPLICATE_FAILED_COMMAND_BLOCKED=false
EXECUTION_STARTED=true
CHANGES_MADE=true
SANITIZED=yes
SECRETS_INCLUDED=no
PRIVATE_ADDRESSES_INCLUDED=no
RAW_EVIDENCE_SHA256=dde48f85d2055be98a15b781774b58654934a8dbad202028b8dad807e8b47aa7
SANITIZED_OUTPUT_SHA256=dde48f85d2055be98a15b781774b58654934a8dbad202028b8dad807e8b47aa7
OUTPUT_BEGIN
validation=PASS
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import re,pathlib,sys;p=pathlib.Path(sys.argv[1]).read_text();m=re.search(r"(?m)^.*\bcat\b[^\n]*<<-?[ \t]*([\"\x27]?)([A-Za-z_][A-Za-z0-9_]*)\1[^\n]*\n",p);assert m;d=m.group(2);s=m.end();e=re.search(r"(?m)^\t*"+re.escape(d)+r"[ \t]*$",p[s:]);assert e;pathlib.Path(sys.argv[2]).write_text(p[s:s+e.start()])
                                                                                                                                                                       ^
AssertionError

OUTPUT_END
CHAT_OUTPUT_END
