Skip to content

Commit

Permalink
Fix: synonym should work for default solo command
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Jun 26, 2019
1 parent d6031e7 commit 276bf0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbelt/src/main/java/org/rundeck/toolbelt/ToolBelt.java
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ private void introspect(CommandSet parent, final Object instance) {
}
if (!isSub) {
parent.commands.put(cmd, commandSet);
parent.getSynonyms().addAll(synonyms);
synonyms.forEach(syn -> parent.commandSynonyms.put(syn, commandSet));
} else {
parent.commands.putAll(commandSet.commands);
parent.commandSynonyms.putAll(subSynonyms);
Expand Down

0 comments on commit 276bf0f

Please sign in to comment.