Skip to content

Commit 9d8654c

Browse files
committed
fix(services): fix waf service use nextMarker
1 parent 15a573c commit 9d8654c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/wafV2WebAcl/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default async ({
4444
WafV2WebAclData.push(...WebACLs)
4545
let marker = NextMarker
4646
while(marker) {
47-
const { WebACLs, NextMarker } = await client.listWebACLs({ Scope: scope, Limit: 10 }).promise()
47+
const { WebACLs, NextMarker } = await client.listWebACLs({ Scope: scope, Limit: 10, NextMarker: marker }).promise()
4848
// There is some issue with wafV2 where it always returns a next marker
4949
if (WebACLs.find(({ Name }) => Name === NextMarker)) {
5050
marker = undefined

0 commit comments

Comments
 (0)