mirror of
https://github.com/haidaraM/ansible-playbook-grapher
synced 2024-11-14 16:07:11 +00:00
no need to print args.version anymore
This commit is contained in:
parent
360c80f27e
commit
6ade86e0e1
1 changed files with 1 additions and 5 deletions
|
@ -18,7 +18,7 @@ from ansible.playbook.block import Block
|
|||
from ansible.vars.manager import VariableManager
|
||||
from graphviz import Digraph
|
||||
|
||||
__version__ = "0.0.2"
|
||||
__version__ = "0.0.3"
|
||||
|
||||
# TODO: add more colors
|
||||
colors = ["red", "#007FFF", "green", "purple", "brown", "orange", "#F562FF", "#5ED4FF", "#50C878", "#0095B6", "#FFD700",
|
||||
|
@ -181,10 +181,6 @@ def main():
|
|||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.version:
|
||||
print(__version__)
|
||||
exit(0)
|
||||
|
||||
loader = DataLoader()
|
||||
inventory = InventoryManager(loader=loader, sources=args.inventory)
|
||||
variable_manager = VariableManager(loader=loader, inventory=inventory)
|
||||
|
|
Loading…
Reference in a new issue