Skip to content

Commit bbfa9bf

Browse files
author
Likitha Shetty
committed
CLOUDSTACK-2862. EC2Engine is not injected correctly
1 parent 971c40d commit bbfa9bf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

awsapi/src/com/cloud/bridge/service/controller/s3/ServiceProvider.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ protected ServiceProvider() throws IOException {
9191
// register service implementation object
9292
Transaction txn = Transaction.open(Transaction.AWSAPI_DB);
9393
txn.close();
94-
serviceMap.put(AmazonS3SkeletonInterface.class, new S3SerializableServiceImplementation(engine));
95-
serviceMap.put(AmazonEC2SkeletonInterface.class, new EC2SoapServiceImpl(EC2_engine));
9694
}
9795

9896
public synchronized static ServiceProvider getInstance() {
@@ -101,7 +99,9 @@ public synchronized static ServiceProvider getInstance() {
10199

102100
@PostConstruct
103101
void initComponent() {
104-
instance = this;
102+
serviceMap.put(AmazonS3SkeletonInterface.class, new S3SerializableServiceImplementation(engine));
103+
serviceMap.put(AmazonEC2SkeletonInterface.class, new EC2SoapServiceImpl(EC2_engine));
104+
instance = this;
105105
}
106106

107107
public boolean configure(String name, Map<String, Object> params)

0 commit comments

Comments
 (0)