]> git.proxmox.com Git - pve-manager.git/commitdiff
api/ceph: allow default value for service start/stop
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2019 12:33:05 +0000 (13:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2019 12:33:07 +0000 (13:33 +0100)
it's a bit strange that one cannot pass the default value explicitly,
helpfull when calling this API path through the CLI envrionment,
which currently cannot have optional fixed-positioned default values

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Ceph.pm

index 47a42f4a5762582f04ad245c7b4c36b010ad23e8..8211784ad4d044d7e77aafdae9ee2f0c4648e128 100644 (file)
@@ -372,7 +372,7 @@ __PACKAGE__->register_method ({
                type => 'string',
                optional => 1,
                default => 'ceph.target',
-               pattern => '(mon|mds|osd|mgr)\.[A-Za-z0-9\-]{1,32}',
+               pattern => '(ceph|mon|mds|osd|mgr)\.[A-Za-z0-9\-]{1,32}',
            },
        },
     },
@@ -423,7 +423,7 @@ __PACKAGE__->register_method ({
                type => 'string',
                optional => 1,
                default => 'ceph.target',
-               pattern => '(mon|mds|osd|mgr)\.[A-Za-z0-9\-]{1,32}',
+               pattern => '(ceph|mon|mds|osd|mgr)\.[A-Za-z0-9\-]{1,32}',
            },
        },
     },