Skip to content

Commit

Permalink
[FIXED JENKINS-10118] force the registration of the converter.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Jan 28, 2012
1 parent 5f3f3cb commit 1cbffee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/hudson/plugins/ec2/PluginImpl.java
Expand Up @@ -25,6 +25,9 @@ public class PluginImpl extends Plugin implements Describable<PluginImpl> {
public void start() throws Exception {
// backward compatibility with the legacy class name
Hudson.XSTREAM.alias("hudson.plugins.ec2.EC2Cloud",AmazonEC2Cloud.class);

// make sure the converter gets registered by forcing static initializer
AwsRegion.AP_NORTHEAST_1.toString();

load();
}
Expand Down

0 comments on commit 1cbffee

Please sign in to comment.