Issue-ID: APPC-1858
Change-Id: I5cfdba67456b0fcbd566117584471e6616e888e7
Signed-off-by: Mamtha <mamtha.sabesan@in.ibm.com>
if (map != null && !(map.isEmpty())) {
Iterator<Entry<String, String>> it = map.entrySet().iterator();
while (it.hasNext()) {
if (map != null && !(map.isEmpty())) {
Iterator<Entry<String, String>> it = map.entrySet().iterator();
while (it.hasNext()) {
- Map.Entry volumes = (Map.Entry) it.next();
+ Map.Entry<String, String> volumes = it.next();
logger.info("volumes available in before detach");
logger.info("device" + volumes.getKey() + "volume" + volumes.getValue());
if (volumes.getValue().equals(volumeId)) {
logger.info("volumes available in before detach");
logger.info("device" + volumes.getKey() + "volume" + volumes.getValue());
if (volumes.getValue().equals(volumeId)) {
}
protected boolean validateDetach(RequestContext rc, ComputeService ser, String vm, String volumeId)
}
protected boolean validateDetach(RequestContext rc, ComputeService ser, String vm, String volumeId)
- throws RequestFailedException, ZoneException {
boolean flag = false;
String msg = null;
config.setProperty(Constants.PROPERTY_RETRY_DELAY, "10");
boolean flag = false;
String msg = null;
config.setProperty(Constants.PROPERTY_RETRY_DELAY, "10");
Iterator<Entry<String, String>> it = map.entrySet().iterator();
logger.info("volumes available after detach ");
while (it.hasNext()) {
Iterator<Entry<String, String>> it = map.entrySet().iterator();
logger.info("volumes available after detach ");
while (it.hasNext()) {
- Map.Entry volumes = (Map.Entry) it.next();
+ Map.Entry<String, String> volumes = it.next();
logger.info(" devices " + volumes.getKey() + " volumes" + volumes.getValue());
if (volumes.getValue().equals(volumeId)) {
logger.info("Device" + volumes.getKey() + "Volume" + volumes.getValue());
logger.info(" devices " + volumes.getKey() + " volumes" + volumes.getValue());
if (volumes.getValue().equals(volumeId)) {
logger.info("Device" + volumes.getKey() + "Volume" + volumes.getValue());
if (flag) {
rc.delay();
} else {
if (flag) {
rc.delay();
} else {
public class LookupServer extends ProviderServerOperation {
public class LookupServer extends ProviderServerOperation {
- private static final EELFLogger logger = EELFManager.getInstance().getLogger(EvacuateServer.class);
+ private static final EELFLogger logger = EELFManager.getInstance().getLogger(LookupServer.class);
private static final Configuration configuration = ConfigurationFactory.getConfiguration();
private static final String SERVERFOUND = "serverFound";
private static final Configuration configuration = ConfigurationFactory.getConfiguration();
private static final String SERVERFOUND = "serverFound";