From 0c19c3304e614a7e57ee885e6e64f8828a9eab52 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 26 Jul 2018 16:18:27 -0700 Subject: [PATCH] composer-cli: Add support for Group to blueprints diff (cherry picked from commit 2edd7a995b9e11e5529d0bc0f51705546967c898) --- src/composer/cli/blueprints.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/composer/cli/blueprints.py b/src/composer/cli/blueprints.py index c852b9de..4f2bbb06 100644 --- a/src/composer/cli/blueprints.py +++ b/src/composer/cli/blueprints.py @@ -223,11 +223,15 @@ def prettyDiffEntry(diff): elif change(diff) == "Added": if name(diff) in ["Module", "Package"]: return "%s %s" % (diff["new"][name(diff)]["name"], diff["new"][name(diff)]["version"]) + elif name(diff) in ["Group"]: + return diff["new"][name(diff)]["name"] else: return " ".join([diff["new"][k] for k in diff["new"]]) elif change(diff) == "Removed": if name(diff) in ["Module", "Package"]: return "%s %s" % (diff["old"][name(diff)]["name"], diff["old"][name(diff)]["version"]) + elif name(diff) in ["Group"]: + return diff["old"][name(diff)]["name"] else: return " ".join([diff["old"][k] for k in diff["old"]])