From 719a0450a4ddb373d0e4624375b8b17c249c0fb5 Mon Sep 17 00:00:00 2001 From: Kevin Klues Date: Mon, 19 Jun 2017 21:13:34 -0700 Subject: [PATCH] Fixed bug with listing installed subcommands. The command names of installed subcommands are now embedded under a 'command' key instead of living at the top level. This commit fixes the 'merge_installed()' function to index into the dictionary of subcommands properly to extract the names now that this change has been introduced. --- dcos/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dcos/package.py b/dcos/package.py index d7d65c9..2ff3c57 100644 --- a/dcos/package.py +++ b/dcos/package.py @@ -156,7 +156,8 @@ def merge_installed(apps, subcommands, app_only, cli_only): del pkg['appId'] indexed_apps[name] = pkg - indexed_subcommands = {subcmd['name']: subcmd for subcmd in subcommands} + indexed_subcommands = {subcmd['command']['name']: subcmd + for subcmd in subcommands} merged = [] for name, app in indexed_apps.items():