]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/Group.pm
add pool API
[pve-access-control.git] / PVE / API2 / Group.pm
index 883c45dde482b6c2c73fd1e1297a119a9f0c8e73..373e8e2da4bebdd50ea8dbdb971262592eda7c30 100644 (file)
@@ -148,10 +148,10 @@ __PACKAGE__->register_method ({
                die "group '$group' does not exist\n" 
                    if !$data;
 
                die "group '$group' does not exist\n" 
                    if !$data;
 
-               $data->{comment} = $param->{comment} if $param->{comment};
+               $data->{comment} = $param->{comment} if defined($param->{comment});
                
                cfs_write_file("user.cfg", $usercfg);
                
                cfs_write_file("user.cfg", $usercfg);
-           }, "create group failed");
+           }, "update group failed");
 
        return undef;
     }});
 
        return undef;
     }});