mirror of https://github.com/apache/jclouds.git
Add support for chef_environment on Node domain object
This commit is contained in:
parent
0a4362c561
commit
a75d816ad7
|
@ -43,6 +43,8 @@ public class Node {
|
||||||
private Map<String, JsonBall> automatic = Maps.newLinkedHashMap();
|
private Map<String, JsonBall> automatic = Maps.newLinkedHashMap();
|
||||||
@SerializedName("run_list")
|
@SerializedName("run_list")
|
||||||
private List<String> runList = Lists.newArrayList();
|
private List<String> runList = Lists.newArrayList();
|
||||||
|
@SerializedName("chef_environment")
|
||||||
|
private String chefEnvironment;
|
||||||
|
|
||||||
// internal
|
// internal
|
||||||
@SerializedName("json_class")
|
@SerializedName("json_class")
|
||||||
|
@ -98,6 +100,10 @@ public class Node {
|
||||||
return runList;
|
return runList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getChefEnvironment() {
|
||||||
|
return chefEnvironment;
|
||||||
|
}
|
||||||
|
|
||||||
@SerializedName("chef_type")
|
@SerializedName("chef_type")
|
||||||
private String _chefType = "node";
|
private String _chefType = "node";
|
||||||
|
|
||||||
|
@ -113,6 +119,7 @@ public class Node {
|
||||||
result = prime * result + ((normal == null) ? 0 : normal.hashCode());
|
result = prime * result + ((normal == null) ? 0 : normal.hashCode());
|
||||||
result = prime * result + ((override == null) ? 0 : override.hashCode());
|
result = prime * result + ((override == null) ? 0 : override.hashCode());
|
||||||
result = prime * result + ((runList == null) ? 0 : runList.hashCode());
|
result = prime * result + ((runList == null) ? 0 : runList.hashCode());
|
||||||
|
result = prime * result + ((chefEnvironment == null) ? 0 : chefEnvironment.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +172,12 @@ public class Node {
|
||||||
return false;
|
return false;
|
||||||
} else if (!runList.equals(other.runList))
|
} else if (!runList.equals(other.runList))
|
||||||
return false;
|
return false;
|
||||||
|
if (chefEnvironment == null) {
|
||||||
|
if (other.chefEnvironment != null)
|
||||||
|
return false;
|
||||||
|
} else if (!chefEnvironment.equals(other.chefEnvironment))
|
||||||
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue