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
Merged
  • Loading branch information
kohsuke authored and francisu committed Feb 14, 2012
1 parent 907e71c commit 936b108
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 @@ -17,6 +17,9 @@ public void start() throws Exception {
Hudson.XSTREAM.alias("hudson.plugins.ec2.EC2Cloud",AmazonEC2Cloud.class);
// backward compatibility with the legacy instance type
Hudson.XSTREAM.registerConverter(new InstanceTypeConverter());

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

load();
}
Expand Down

0 comments on commit 936b108

Please sign in to comment.