]> git.proxmox.com Git - pve-manager.git/commitdiff
api/nodes: fix variable name style: s/cmdMapper/shell_cmd_map/
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Feb 2019 12:04:10 +0000 (13:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Feb 2019 12:04:10 +0000 (13:04 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Nodes.pm

index 1a1e260ac42e7492bdfe242140fd2b08e6f125fa..cf3b066ff20820109a3247dd5cf6337cde52852c 100644 (file)
@@ -701,7 +701,7 @@ __PACKAGE__->register_method({
 
 my $sslcert;
 
-my $cmdMapper = {
+my $shell_cmd_map = {
     'login' => [ '/bin/login', '-f', 'root' ],
     'upgrade' => [ '/usr/bin/pveupgrade', '--shell' ],
 };
@@ -710,8 +710,8 @@ sub get_shell_command  {
     my ($user, $shellcmd) = @_;
 
     if ($user eq 'root@pam') {
-       if (exists($cmdMapper->{$shellcmd})) {
-           return $cmdMapper->{$shellcmd};
+       if (exists($shell_cmd_map->{$shellcmd})) {
+           return $shell_cmd_map->{$shellcmd};
        } else {
            return [ '/bin/login', '-f', 'root' ];
        }
@@ -743,7 +743,7 @@ __PACKAGE__->register_method ({
            cmd => {
                type => 'string',
                description => "Run specific command or default to login.",
-               enum => [keys %$cmdMapper],
+               enum => [keys %$shell_cmd_map],
                optional => 1,
                default => 'login',
            },
@@ -900,7 +900,7 @@ __PACKAGE__->register_method ({
            cmd => {
                type => 'string',
                description => "Run specific command or default to login.",
-               enum => [keys %$cmdMapper],
+               enum => [keys %$shell_cmd_map],
                optional => 1,
                default => 'login',
            },
@@ -1047,7 +1047,7 @@ __PACKAGE__->register_method ({
            cmd => {
                type => 'string',
                description => "Run specific command or default to login.",
-               enum => [keys %$cmdMapper],
+               enum => [keys %$shell_cmd_map],
                optional => 1,
                default => 'login',
            },