public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Stoiko Ivanov <s.ivanov@proxmox.com>
Subject: [pve-devel] applied: [PATCH proxmox-acme] plugin-caller: make no-ops always successful
Date: Fri, 16 Jul 2021 17:59:14 +0200	[thread overview]
Message-ID: <4998e52e-c99d-1ced-21dd-c40708ff14e2@proxmox.com> (raw)
In-Reply-To: <20210716134305.3729415-1-s.ivanov@proxmox.com>

On 16.07.21 15:43, Stoiko Ivanov wrote:
> proxmox-acme is used to call the dns-plugins from acme.sh and has the
> config editing (saving/clearing) turned int no-ops.
> 
> bash's `return` statement w/o argument returns the value of the last
> executed command (the one before our no-op method was called) (see
> `help return` in bash).
> This leads to unexpected behavior in some plugins, which call one of
> the methods as last statement join the next step with `&&`.
> 
> tested bash behavior with:
> ```
> foo() { return; }; if [ -z 'x' ]; then :; else foo ; fi; echo $?
> ```
> 
> reported in our community-forum:
> https://forum.proxmox.com/threads/pmg-acme-dns-with-cyon-failing-to-issue-certificate.92762
> 
> Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
> ---
>  src/proxmox-acme | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
>

applied, thanks!




      reply	other threads:[~2021-07-16 15:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-16 13:43 [pve-devel] " Stoiko Ivanov
2021-07-16 15:59 ` Thomas Lamprecht [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4998e52e-c99d-1ced-21dd-c40708ff14e2@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=s.ivanov@proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal