Skip to content

Commit

Permalink
[FIXED JENKINS-45786] Add readResolve() to VSphereCloudRetentionStrategy
Browse files Browse the repository at this point in the history
to ensure super.idleMinutes is properly restored from persistent state
  • Loading branch information
balleman-tt committed Jul 31, 2017
1 parent f3c7aac commit f15f5f9
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -36,4 +36,9 @@ public String getDisplayName() {
return "vSphere Keep-Until-Idle Retention Strategy";
}
}

private Object readResolve() {
// without this, super.idleMinutes is not restored from persistence
return new VSphereCloudRetentionStrategy(idleMinutes);
}
}

0 comments on commit f15f5f9

Please sign in to comment.