]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix missing ImageSpec usage 33067/head
authorTiago Melo <tmelo@suse.com>
Tue, 4 Feb 2020 17:04:45 +0000 (16:04 -0100)
committerTiago Melo <tmelo@suse.com>
Fri, 6 Mar 2020 14:18:15 +0000 (13:18 -0100)
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts

index 6dfc82423b50ebf7d84ea970305ce1306cec6f82..fa69acafd1b67cf0672fe252f418d5b1b68fc729 100644 (file)
@@ -238,7 +238,8 @@ export class RbdSnapshotListComponent implements OnInit, OnChanges {
       image_spec: new ImageSpec(this.poolName, this.namespace, this.rbdName).toString(),
       snapshot_name: snapshotName
     };
-    this.rbdService[task](this.poolName, this.namespace, this.rbdName, snapshotName)
+    const imageSpec = new ImageSpec(this.poolName, this.namespace, this.rbdName);
+    this.rbdService[task](imageSpec, snapshotName)
       .toPromise()
       .then(() => {
         const executingTask = new ExecutingTask();