Commit 53680107 authored by Jameson Rollins's avatar Jameson Rollins

Remove unused --query option from guardutil graph

This brought in extra dependencies, and the feature was cute, but not
really useful.
parent 14993c61
......@@ -141,20 +141,6 @@ def draw_graph(args):
path = (args.state, args.request)
else:
path = (args.state,)
if args.query:
try:
from guardian.manager import Node, NodeConnectError
except ImportError as e:
sys.exit("Node query not supported: %s" % e)
try:
node = Node(system.name)
node.init()
except NodeConnectError as e:
sys.exit("CA error: %s" % e)
if node.request == 'NONE':
path = (node.state,)
else:
path = (node.state, node.request)
for state in path:
if state not in system:
sys.exit("State '%s' not defined in system %s." % (state, system.name))
......@@ -221,8 +207,6 @@ p.add_argument('-a', '--all', action='store_true',
help="show all edges (-gj)")
p.add_argument('-c', '--constraints', action='store_true',
help="use edge constraints for goto and jump edges")
p.add_argument('-q', '--query', action='store_true',
help="query via EPICS for <state> and <request> from running guard node for highlighting path")
p.add_argument('-f', '--format', metavar='<type>', type=str,
help="drawing format: 'pdf', 'svg', etc. (default: 'pdf')")
p.add_argument('-o', '--outfile', metavar='<path>', type=str, nargs='?', default=False,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment