File 0008-high-cibconfig-Graph-file-output-option-was-reversed.patch of Package crmsh

From 3c294bb369fece0858ae5a186a5d04e513765070 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
Date: Thu, 27 Apr 2017 14:39:24 +0200
Subject: [PATCH] high: cibconfig: Graph file output option was reversed
 (bsc#1036595)

---
 crmsh/cibconfig.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crmsh/cibconfig.py b/crmsh/cibconfig.py
index 5af2b23c..21d44296 100644
--- a/crmsh/cibconfig.py
+++ b/crmsh/cibconfig.py
@@ -380,7 +380,7 @@ class CibObjectSet(object):
         rc, d = utils.load_graphviz_file(userdir.GRAPHVIZ_USER_FILE)
         if rc and d:
             constants.graph = d
-        if outf is not None:
+        if outf is None:
             return self.show_graph(gtype)
         elif gtype == ftype:
             rc = self.save_graph(gtype, outf)
-- 
2.12.0

openSUSE Build Service is sponsored by