From: Tiago Melo Date: Tue, 4 Feb 2020 17:04:45 +0000 (-0100) Subject: mgr/dashboard: Fix missing ImageSpec usage X-Git-Tag: v15.1.1~41^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5eae3402ef7aa58fefbfa08a8a929b50506d389c;p=ceph.git mgr/dashboard: Fix missing ImageSpec usage Signed-off-by: Tiago Melo --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts index 6dfc82423b50..fa69acafd1b6 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts @@ -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();