This commit is contained in:
Paolo Fabriani 2016-11-23 16:33:17 +00:00
parent e64e854bf8
commit 893685350e
4 changed files with 12 additions and 8 deletions

View File

@ -212,17 +212,17 @@ public class AnsibleBridge ***REMOVED***
*/
public Collection<Role> generateRoles(Dependency d) ***REMOVED***
Collection<Role> roles = new Vector<>();
if("os".equals(d.getType())) ***REMOVED***
if("os".equalsIgnoreCase(d.getType())) ***REMOVED***
OSDependencyPackage pkg = new OSDependencyPackage(d);
if(pkg!=null) ***REMOVED***
roles.addAll(pkg.getRoles(this.getTemplateManager()));
***REMOVED***
***REMOVED*** else if("custom".equals(d.getType())) ***REMOVED***
***REMOVED*** else if("custom".equalsIgnoreCase(d.getType())) ***REMOVED***
CustomDependencyPackage pkg = new CustomDependencyPackage(d);
if(pkg!=null) ***REMOVED***
roles.addAll(pkg.getRoles(this.getCustomRoleManager()));
***REMOVED***
***REMOVED*** else if("cran".equals(d.getType())) ***REMOVED***
***REMOVED*** else if("cran".equalsIgnoreCase(d.getType())) ***REMOVED***
CranDependencyPackage pkg = new CranDependencyPackage(d);
if(pkg!=null) ***REMOVED***
roles.addAll(pkg.getRoles(this.getTemplateManager()));

View File

@ -22,7 +22,15 @@ public class AlgorithmPackage ***REMOVED***
protected Map<String, String> getDictionary(Algorithm a) ***REMOVED***
Map<String, String> out = new HashMap<String, String>();
out.put("name", a.getName());
out.put("category", a.getCategory());
out.put("class", a.getClazz());
out.put("p5", "TEMP_TRANSDUCERS");
out.put("p6", "TEMP_??");
out.put("vre", "FAKE_VRE");
out.put("packageurl", a.getPackageURL());
out.put("description", a.getDescription());
String deps = "";
for(Dependency d:a.getDependencies()) ***REMOVED***
deps+=String.format("- ***REMOVED*** role: %s ***REMOVED***\n", d.getType()+"-"+d.getName());
***REMOVED***

View File

@ -159,7 +159,7 @@ public class AlgorithmPackageParser ***REMOVED***
for (String pkg : dependencies) ***REMOVED***
Dependency dep = new Dependency();
dep.setName(pkg);
dep.setType("OS");
dep.setType("os");
out.addDependency(dep);
***REMOVED***
***REMOVED***

View File

@ -119,8 +119,4 @@ public class DataminerPoolManager ***REMOVED***
***REMOVED***
***REMOVED*** private void updateClusters() ***REMOVED***
***REMOVED*** System.out.println("flushing changes to all clusters");
***REMOVED*** ***REMOVED***
***REMOVED***