]> git.proxmox.com Git - pve-container.git/commitdiff
depreacate pve-lxc-snapshot-name in favor of identical pve-snapshot-name
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Mar 2019 14:14:05 +0000 (15:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Mar 2019 14:14:05 +0000 (15:14 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/control
src/PVE/API2/LXC.pm
src/PVE/API2/LXC/Snapshot.pm
src/PVE/LXC/Config.pm

index 2b115de749bfb9fd6f4c947b3a5fec97eb40183f..66e17260d628b71dda0bd15451ad4d0f78ba62c7 100644 (file)
@@ -3,7 +3,7 @@ Section: perl
 Priority: extra
 Maintainer: Proxmox Support Team <support@proxmox.com>
 Build-Depends: debhelper (>= 7.0.50~),
-               libpve-common-perl (>= 5.0-48),
+               libpve-common-perl (>= 5.0-49),
                libpve-guest-common-perl (>= 2.0-20),
                libpve-storage-perl,
                libtest-mockmodule-perl,
@@ -18,7 +18,7 @@ Section: perl
 Priority: optional
 Architecture: all
 Depends: file,
-         libpve-common-perl (>= 5.0-48),
+         libpve-common-perl (>= 5.0-49),
          libpve-guest-common-perl (>= 2.0-20),
          libpve-storage-perl (>= 5.0-31),
          lxc-pve,
index bba22d6b70ca08f19020cb7dc5a63b22276ab5d6..6de121f09b19960dff60b28145c7d0670f5d8116 100644 (file)
@@ -1074,7 +1074,7 @@ __PACKAGE__->register_method({
                 type => 'string',
                 enum => [ 'snapshot', 'clone', 'copy' ],
             },
-            snapname => get_standard_option('pve-lxc-snapshot-name', {
+            snapname => get_standard_option('pve-snapshot-name', {
                 optional => 1,
             }),
        },
@@ -1233,7 +1233,7 @@ __PACKAGE__->register_method({
                type => 'string', format => 'pve-poolid',
                description => "Add the new CT to the specified pool.",
            },
-           snapname => get_standard_option('pve-lxc-snapshot-name', {
+           snapname => get_standard_option('pve-snapshot-name', {
                optional => 1,
             }),
            storage => get_standard_option('pve-storage-id', {
index db41954ecbcdb5195a2480cf9566929d3858b7b9..38df2e0862e65ee38519add34a392b4991d5211c 100644 (file)
@@ -115,7 +115,7 @@ __PACKAGE__->register_method({
        properties => {
            node => get_standard_option('pve-node'),
            vmid => get_standard_option('pve-vmid', { completion => \&PVE::LXC::complete_ctid }),
-           snapname => get_standard_option('pve-lxc-snapshot-name'),
+           snapname => get_standard_option('pve-snapshot-name'),
 #          vmstate => {
 #              optional => 1,
 #              type => 'boolean',
@@ -174,7 +174,7 @@ __PACKAGE__->register_method({
        properties => {
            node => get_standard_option('pve-node'),
            vmid => get_standard_option('pve-vmid'),
-           snapname => get_standard_option('pve-lxc-snapshot-name'),
+           snapname => get_standard_option('pve-snapshot-name'),
            force => {
                optional => 1,
                type => 'boolean',
@@ -220,7 +220,7 @@ __PACKAGE__->register_method({
        properties => {
            vmid => get_standard_option('pve-vmid'),
            node => get_standard_option('pve-node'),
-           snapname => get_standard_option('pve-lxc-snapshot-name'),
+           snapname => get_standard_option('pve-snapshot-name'),
        },
     },
     returns => {
@@ -257,7 +257,7 @@ __PACKAGE__->register_method({
        properties => {
            node => get_standard_option('pve-node'),
            vmid => get_standard_option('pve-vmid'),
-           snapname => get_standard_option('pve-lxc-snapshot-name'),
+           snapname => get_standard_option('pve-snapshot-name'),
        },
     },
     returns => {
@@ -305,7 +305,7 @@ __PACKAGE__->register_method({
        properties => {
            node => get_standard_option('pve-node'),
            vmid => get_standard_option('pve-vmid'),
-           snapname => get_standard_option('pve-lxc-snapshot-name'),
+           snapname => get_standard_option('pve-snapshot-name'),
            description => {
                optional => 1,
                type => 'string',
@@ -360,7 +360,7 @@ __PACKAGE__->register_method({
        properties => {
            node => get_standard_option('pve-node'),
            vmid => get_standard_option('pve-vmid'),
-           snapname => get_standard_option('pve-lxc-snapshot-name'),
+           snapname => get_standard_option('pve-snapshot-name'),
        },
     },
     returns => { type => "object" },
index 866d7874124432780e838f882fdc71418256f7a2..07ae3bfb6bfeb3b327f765c64f510033448b90d0 100644 (file)
@@ -267,12 +267,6 @@ PVE::JSONSchema::register_standard_option('pve-ct-rootfs', {
     optional => 1,
 });
 
-PVE::JSONSchema::register_standard_option('pve-lxc-snapshot-name', {
-    description => "The name of the snapshot.",
-    type => 'string', format => 'pve-configid',
-    maxLength => 40,
-});
-
 my $features_desc = {
     mount => {
        optional => 1,