From a15d9a35104b7cd451c646a4c21c5832353e948d Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 16 May 2026 10:47:25 +0200 Subject: [PATCH] packet_project and packet_sshkey: fix broken example plays (#12055) Fix example plays. --- plugins/modules/packet_project.py | 22 +++++++++++----------- plugins/modules/packet_sshkey.py | 16 ++++++++-------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/plugins/modules/packet_project.py b/plugins/modules/packet_project.py index a19e0b167b..b20d7e3cb5 100644 --- a/plugins/modules/packet_project.py +++ b/plugins/modules/packet_project.py @@ -81,29 +81,29 @@ EXAMPLES = r""" - name: Create new project hosts: localhost tasks: - community.general.packet_project: - name: "new project" + - community.general.packet_project: + name: "new project" - name: Create new project within non-default organization hosts: localhost tasks: - community.general.packet_project: - name: "my org project" - org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0 + - community.general.packet_project: + name: "my org project" + org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0 - name: Remove project by id hosts: localhost tasks: - community.general.packet_project: - state: absent - id: eef49903-7a09-4ca1-af67-4087c29ab5b6 + - community.general.packet_project: + state: absent + id: eef49903-7a09-4ca1-af67-4087c29ab5b6 - name: Create new project with non-default billing method hosts: localhost tasks: - community.general.packet_project: - name: "newer project" - payment_method: "the other visa" + - community.general.packet_project: + name: "newer project" + payment_method: "the other visa" """ RETURN = r""" diff --git a/plugins/modules/packet_sshkey.py b/plugins/modules/packet_sshkey.py index 37bb72dc3d..8f5768d02e 100644 --- a/plugins/modules/packet_sshkey.py +++ b/plugins/modules/packet_sshkey.py @@ -63,22 +63,22 @@ EXAMPLES = r""" - name: Create sshkey from string hosts: localhost tasks: - community.general.packet_sshkey: - key: "{{ lookup('file', 'my_packet_sshkey.pub') }}" + - community.general.packet_sshkey: + key: "{{ lookup('file', 'my_packet_sshkey.pub') }}" - name: Create sshkey from file hosts: localhost tasks: - community.general.packet_sshkey: - label: key from file - key_file: ~/ff.pub + - community.general.packet_sshkey: + label: key from file + key_file: ~/ff.pub - name: Remove sshkey by id hosts: localhost tasks: - community.general.packet_sshkey: - state: absent - id: eef49903-7a09-4ca1-af67-4087c29ab5b6 + - community.general.packet_sshkey: + state: absent + id: eef49903-7a09-4ca1-af67-4087c29ab5b6 """ RETURN = r"""