The argument has changed, extract the local name.
Change-Id: I7a6f3cad95b32e3f60c1719b36a95c5f91847557
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
if (node instanceof SchemaNode) {
sb.append("The schema path to identify an instance is\n")
.append("<i>")
- .append(formatSchemaPath(def.module.argument, node.path.pathFromRoot))
+ .append(formatSchemaPath(def.module.argument.localName, node.path.pathFromRoot))
.append("</i>\n")
if (hasBuilderClass(node)) {
final Optional<Revision> revision = entry.getKey().getRevision();
final ModuleEffectiveStatement module = entry.getValue();
- sources.add(RevisionSourceIdentifier.create(module.argument(), revision));
+ sources.add(RevisionSourceIdentifier.create(module.argument().getLocalName(), revision));
module.streamEffectiveSubstatements(SubmoduleEffectiveStatement.class)
- .map(submodule -> RevisionSourceIdentifier.create(submodule.argument(), revision))
+ .map(submodule -> RevisionSourceIdentifier.create(submodule.argument().getLocalName(), revision))
.forEach(sources::add);
}