Skip to content
Snippets Groups Projects
Commit 70542699 authored by Gwenaelle ABEILLE's avatar Gwenaelle ABEILLE
Browse files

ignore case for attributes names

parent 6228c9f2
No related branches found
No related tags found
No related merge requests found
......@@ -1192,6 +1192,7 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
public short retry_for_attribute(final String attributeToRetry) throws DevFailed {
TangoStateUtils.isAllowed(this);
if (attributeToRetry == null || attributeToRetry.equals("")) {
logger.trace(ILogger.LEVEL_ERROR, "no retry done - no attribute");
return NA;
}
try {
......@@ -1203,7 +1204,7 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
for (int i = 0; i < myCurrentTasks.size(); i++) {
final AttributeLightMode attributeLightMode = myCurrentTasks.elementAt(i);
final String attrName = attributeLightMode.getAttribute_complete_name();
if (attrName.equals(attributeToRetry)) {
if (attrName.equalsIgnoreCase(attributeToRetry)) {
archivingMessConfig.add(attributeLightMode);
configIsNotEmpty = true;
break;
......@@ -1218,6 +1219,7 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
return SUCCEEDED;
} else {
logger.trace(ILogger.LEVEL_ERROR, attributeToRetry + " no retry done - config is empty");
return NA;
}
} catch (final DevFailed e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment