public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* Re: [pve-devel] [PATCH firewall 1/1] fix #5335: sort cluster.fw entries in ALIASES section
       [not found] ` <mailman.326.1712824628.450.pve-devel@lists.proxmox.com>
@ 2024-04-15 11:36   ` Fabian Grünbichler
  0 siblings, 0 replies; only message in thread
From: Fabian Grünbichler @ 2024-04-15 11:36 UTC (permalink / raw)
  To: Proxmox VE development discussion; +Cc: Daniel Krambrock

> Daniel Krambrock via pve-devel <pve-devel@lists.proxmox.com> hat am 11.04.2024 10:09 CEST geschrieben:

Hi!

for both this and the access-control patch, please add
- *some* commit message (e.g., something like "stable sorting in XX config file allows tracking changes by checking into git or when using automation like ansible" would be enough. try to describe the *why*, rather than the *what* - the latter is usually obvious when looking at the diff, especially for such small patches ;))
- add your Signed-off-by trailer ("git commit --amend -s" should do the trick)

note that you don't need to send a cover letter for single patches, those are just needed when you send bigger patch series where it makes sense to summarize all the patches to get a quick overview of the overall aim of the series.

thanks!

> ---
>  src/PVE/Firewall.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm
> index 77cbaf4..81a8798 100644
> --- a/src/PVE/Firewall.pm
> +++ b/src/PVE/Firewall.pm
> @@ -3360,7 +3360,7 @@ my $format_aliases = sub {
>      my $raw = '';
>  
>      $raw .= "[ALIASES]\n\n";
> -    foreach my $k (keys %$aliases) {
> +    foreach my $k (sort keys %$aliases) {
>  	my $e = $aliases->{$k};
>  	$raw .= "$e->{name} $e->{cidr}";
>  	$raw .= " # " . encode('utf8', $e->{comment})
> -- 
> 2.39.2




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-15 11:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20240411080928.11334-1-krambrod@staff.uni-marburg.de>
     [not found] ` <mailman.326.1712824628.450.pve-devel@lists.proxmox.com>
2024-04-15 11:36   ` [pve-devel] [PATCH firewall 1/1] fix #5335: sort cluster.fw entries in ALIASES section Fabian Grünbichler

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