From: Dietmar Maurer Date: Mon, 24 Mar 2014 05:21:44 +0000 (+0100) Subject: pheceph: add -version argument to install X-Git-Url: https://git.proxmox.com/?p=pve-manager.git;a=commitdiff_plain;h=e69bd5aa1f4feee275b995c67a87d8afcd6d8c15 pheceph: add -version argument to install --- diff --git a/bin/pveceph b/bin/pveceph index d83c0c07..0def860b 100755 --- a/bin/pveceph +++ b/bin/pveceph @@ -80,13 +80,18 @@ __PACKAGE__->register_method ({ parameters => { additionalProperties => 0, properties => { + version => { + type => 'string', + enum => ['dumpling', 'emperor', 'firefly'], + optional => 1, + } }, }, returns => { type => 'null' }, code => sub { my ($param) = @_; - my $cephver = 'emperor'; + my $cephver = $param->{version} || 'dumpling'; local $ENV{DEBIAN_FRONTEND} = 'noninteractive';