mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 14:11:24 -03:30
[proj signing] Fix error message, rename action (#12926)
- Fix out of scope variable in error message in the action plugin - Rename action plugin from playbook_integrity to verify_project Refs #12887 which pointed out the out of scope variable Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
parent
d67aef9d8e
commit
1b9326888e
@ -88,7 +88,7 @@ class ActionModule(ActionBase):
|
||||
if not os.path.exists(manifest_file):
|
||||
return {
|
||||
"failed": True,
|
||||
"msg": f"Expected file not found: {path}",
|
||||
"msg": f"Expected file not found: {manifest_file}",
|
||||
}
|
||||
|
||||
checksum_file_contents = open(manifest_file, "r").read()
|
||||
@ -160,19 +160,17 @@
|
||||
name: Perform project signature/checksum verification
|
||||
tasks:
|
||||
- name: Verify project content using GPG signature
|
||||
playbook_integrity:
|
||||
verify_project:
|
||||
project_path: "{{ project_path | quote }}"
|
||||
validation_type: gpg
|
||||
gpg_pubkey: "{{ gpg_pubkey }}"
|
||||
register: gpg_result
|
||||
tags:
|
||||
- validation_gpg_public_key
|
||||
|
||||
- name: Verify project content against checksum manifest
|
||||
playbook_integrity:
|
||||
verify_project:
|
||||
project_path: "{{ project_path | quote }}"
|
||||
validation_type: checksum_manifest
|
||||
register: checksum_result
|
||||
tags:
|
||||
- validation_checksum_manifest
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user