use of com.sequenceiq.cloudbreak.api.model.v2.Tags in project cloudbreak by hortonworks.
the class StackToStackV2RequestConverter method prepareTags.
private void prepareTags(Stack source, StackV2Request stackV2Request) {
try {
StackTags stackTags = source.getTags().get(StackTags.class);
if (stackTags.getUserDefinedTags() != null) {
Tags tags = new Tags();
tags.setApplicationTags(null);
tags.setDefaultTags(null);
tags.setUserDefinedTags(stackTags.getUserDefinedTags());
stackV2Request.setTags(tags);
}
} catch (IOException e) {
stackV2Request.setTags(null);
}
}
Aggregations