Skip to content

Commit

Permalink
Fix error.
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiaofeng committed May 21, 2024
1 parent 4b544cc commit cd6f46e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ protected String getResource(SyncConfig config) {

@Override
protected boolean updateOnce(List<Service> value, FileDigest meta) {
if (value != null && !value.isEmpty()) {
value.forEach(s -> s.own(o -> o.own(getName())));
}
GovernancePolicy expect = policySupervisor.getPolicy();
GovernancePolicy update = expect == null ? new GovernancePolicy() : expect.copy();
update.setServices(value);
Expand Down

0 comments on commit cd6f46e

Please sign in to comment.