From 181a954d437486de1d43890324a2e5aba43daa61 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kaminski Date: Wed, 15 Jul 2015 10:46:29 +0200 Subject: [PATCH] solar connections graph fix, README updated --- README.md | 6 ++++++ solar/solar/cli/main.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 722a64be..1bd2db85 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,12 @@ solar connections show solar connections graph ``` +You can also limit graph to show only specific resources: + +``` +solar connections graph --start-with mariadb_service --end-with keystone_db +``` + * You can make sure that all input values are correct and mapped without duplicating your values with this command: ``` solar resource validate diff --git a/solar/solar/cli/main.py b/solar/solar/cli/main.py index 3a88bc6b..cfa844b6 100644 --- a/solar/solar/cli/main.py +++ b/solar/solar/cli/main.py @@ -258,7 +258,7 @@ def init_cli_connections(): end_with=end_with) nx.write_dot(g, 'graph.dot') - fabric_api.local('dot', '-Tpng', 'graph.dot', '-o', 'graph.png') + fabric_api.local('dot -Tpng graph.dot -o graph.png') # Matplotlib #pos = nx.spring_layout(g)