@@ -257,6 +257,8 @@ export class RuleService extends ServiceBase<RuleListResponse, RuleList> impleme
257
257
return { operation_status : acsResponse . operation_status } ;
258
258
}
259
259
const result = await super . update ( request , ctx ) ;
260
+ _accessController . policySets = await policySetService . load ( ) || new Map ( ) ;
261
+ this . logger . info ( 'Reloaded Rules after update operation' ) ;
260
262
return result ;
261
263
}
262
264
@@ -286,6 +288,8 @@ export class RuleService extends ServiceBase<RuleListResponse, RuleList> impleme
286
288
return { operation_status : acsResponse . operation_status } ;
287
289
}
288
290
const result = await super . upsert ( request , ctx ) ;
291
+ _accessController . policySets = await policySetService . load ( ) || new Map ( ) ;
292
+ this . logger . info ( 'Reloaded Rules after upsert operation' ) ;
289
293
return result ;
290
294
}
291
295
@@ -541,6 +545,8 @@ export class PolicyService extends ServiceBase<PolicyListResponse, PolicyList> i
541
545
return { operation_status : acsResponse . operation_status } ;
542
546
}
543
547
const result = await super . update ( request , ctx ) ;
548
+ _accessController . policySets = await policySetService . load ( ) || new Map ( ) ;
549
+ this . logger . info ( 'Reloaded Policies after update operation' ) ;
544
550
return result ;
545
551
}
546
552
@@ -570,6 +576,8 @@ export class PolicyService extends ServiceBase<PolicyListResponse, PolicyList> i
570
576
return { operation_status : acsResponse . operation_status } ;
571
577
}
572
578
const result = await super . upsert ( request , ctx ) ;
579
+ _accessController . policySets = await policySetService . load ( ) || new Map ( ) ;
580
+ this . logger . info ( 'Reloaded Policies after upsert operation' ) ;
573
581
return result ;
574
582
}
575
583
@@ -986,6 +994,8 @@ export class PolicySetService extends ServiceBase<PolicySetListResponse, PolicyS
986
994
return { operation_status : acsResponse . operation_status } ;
987
995
}
988
996
const result = await super . upsert ( request , ctx ) ;
997
+ _accessController . policySets = await policySetService . load ( ) || new Map ( ) ;
998
+ this . logger . info ( 'Reloaded PolicySet after upsert operation' ) ;
989
999
return result ;
990
1000
}
991
1001
}
0 commit comments