[pve-devel] [PATCH container 1/3] add missing defined check on validate_ssh_keys

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Apr 6 14:32:37 CEST 2016


---
 src/PVE/API2/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 34ebf4e..90cdba6 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -198,7 +198,7 @@ __PACKAGE__->register_method({
 	my $password = extract_param($param, 'password');
 
 	my $ssh_keys = extract_param($param, 'ssh-public-keys');
-	PVE::Tools::validate_ssh_public_keys($ssh_keys);
+	PVE::Tools::validate_ssh_public_keys($ssh_keys) if defined($ssh_keys);
 
 	my $pool = extract_param($param, 'pool');
 
-- 
2.1.4





More information about the pve-devel mailing list