@@ -146,7 +146,7 @@ func deleteManyBackup(ctx context.Context, pbm *sdk.Client, d *deleteBcpOpts) (s
146146 if err != nil {
147147 return sdk .NoOpID , errors .Wrap (err , "parse --type" )
148148 }
149- backups , err := sdk .ListDeleteBackupBefore (ctx , pbm , ts , bcpType )
149+ backups , err := sdk .ListDeleteBackupBefore (ctx , pbm , ts , bcpType , d . profile )
150150 if err != nil {
151151 return sdk .NoOpID , errors .Wrap (err , "fetch backup list" )
152152 }
@@ -162,7 +162,7 @@ func deleteManyBackup(ctx context.Context, pbm *sdk.Client, d *deleteBcpOpts) (s
162162 }
163163 }
164164
165- cid , err := pbm .DeleteBackupBefore (ctx , ts , sdk.DeleteBackupBeforeOptions {Type : bcpType })
165+ cid , err := pbm .DeleteBackupBefore (ctx , ts , sdk.DeleteBackupBeforeOptions {Type : bcpType , Profile : d . profile })
166166 return cid , errors .Wrap (err , "schedule delete" )
167167}
168168
@@ -295,7 +295,7 @@ func doCleanup(ctx context.Context, conn connect.Client, pbm *sdk.Client, d *cle
295295 }
296296 }
297297
298- info , err := pbm .CleanupReport (ctx , ts )
298+ info , err := pbm .CleanupReport (ctx , ts , d . profile )
299299 if err != nil {
300300 return nil , errors .Wrap (err , "make cleanup report" )
301301 }
@@ -317,7 +317,7 @@ func doCleanup(ctx context.Context, conn connect.Client, pbm *sdk.Client, d *cle
317317 }
318318 }
319319
320- cid , err := pbm .RunCleanup (ctx , ts )
320+ cid , err := pbm .RunCleanup (ctx , ts , d . profile )
321321 if err != nil {
322322 return nil , errors .Wrap (err , "send command" )
323323 }
0 commit comments