mirror of
https://github.com/apache/jclouds.git
synced 2025-02-17 15:35:44 +00:00
fixed where image description doesn't match
This commit is contained in:
parent
983801ceb0
commit
1429edf69e
@ -128,8 +128,11 @@ public class TemplateBuilderImpl implements TemplateBuilder {
|
|||||||
if (input.getOsDescription() == null)
|
if (input.getOsDescription() == null)
|
||||||
returnVal = false;
|
returnVal = false;
|
||||||
else
|
else
|
||||||
returnVal = input.getOsDescription().contains(osDescription) ||
|
returnVal = input.getOsDescription().contains(osDescription)
|
||||||
input.getOsDescription().matches(osDescription); /* note: matches() expects a regex!*/
|
|| input.getOsDescription().matches(osDescription); /*
|
||||||
|
* note: matches()
|
||||||
|
* expects a regex!
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
return returnVal;
|
return returnVal;
|
||||||
}
|
}
|
||||||
@ -142,8 +145,11 @@ public class TemplateBuilderImpl implements TemplateBuilder {
|
|||||||
if (input.getVersion() == null)
|
if (input.getVersion() == null)
|
||||||
returnVal = false;
|
returnVal = false;
|
||||||
else
|
else
|
||||||
returnVal = input.getVersion().contains(imageVersion) ||
|
returnVal = input.getVersion().contains(imageVersion)
|
||||||
input.getVersion().matches(imageVersion); /* note: matches() expects a regex!*/
|
|| input.getVersion().matches(imageVersion); /*
|
||||||
|
* note: matches() expects a
|
||||||
|
* regex!
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
return returnVal;
|
return returnVal;
|
||||||
}
|
}
|
||||||
@ -156,8 +162,8 @@ public class TemplateBuilderImpl implements TemplateBuilder {
|
|||||||
if (input.getName() == null)
|
if (input.getName() == null)
|
||||||
returnVal = false;
|
returnVal = false;
|
||||||
else
|
else
|
||||||
returnVal = input.getName().contains(imageName) ||
|
returnVal = input.getName().contains(imageName)
|
||||||
input.getName().matches(imageName); /* note: matches() expects a regex!*/
|
|| input.getName().matches(imageName); /* note: matches() expects a regex! */
|
||||||
}
|
}
|
||||||
return returnVal;
|
return returnVal;
|
||||||
}
|
}
|
||||||
@ -170,8 +176,12 @@ public class TemplateBuilderImpl implements TemplateBuilder {
|
|||||||
if (input.getName() == null)
|
if (input.getName() == null)
|
||||||
returnVal = false;
|
returnVal = false;
|
||||||
else
|
else
|
||||||
returnVal = input.getName().contains(imageDescription) ||
|
returnVal = input.getDescription().equals(imageDescription)
|
||||||
input.getName().matches(imageDescription); /* note: matches() expects a regex!*/
|
|| input.getDescription().contains(imageDescription)
|
||||||
|
|| input.getDescription().matches(imageDescription); /*
|
||||||
|
* note: matches()
|
||||||
|
* expects a regex!
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
return returnVal;
|
return returnVal;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user