jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kai Liu <kliu....@gmail.com>
Subject novaApi.getKeyPairApi() for Openstack Liberty
Date Tue, 26 Apr 2016 17:11:15 GMT
Hi,

I was wondering if anyone is using Openstack Liberty. I am using jclouds
(2.0.0-snapshot) and tried to get KeyPairApi using the following code:

            try {
Optional<KeyPairApi> keyapi = api.getKeyPairApi(region);
KeyPairApi keyPairApi = keyapi.get();
} catch (Exception e) {
LOGGER.error(e);
}

The following error occurs:

*java.lang.IllegalStateException: Optional.get() cannot be called on an
absent value*

But the codes works for Openstack Kilo. Any help would be greatly
appreciated

Best regards,

-- 

Kai Liu
Ph.D. student
Department of Geography and GeoInformation Science
George Mason University

Mime
View raw message