Skip to content
Permalink
Browse files
[FIXED JENKINS-10118] force the registration of the converter.
Merged
  • Loading branch information
kohsuke authored and francisu committed Feb 14, 2012
1 parent 907e71c commit 936b1088a15d7ec2bd636f6307f11660f66b7634
Showing 1 changed file with 3 additions and 0 deletions.
@@ -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();
}

0 comments on commit 936b108

Please sign in to comment.