palindromicity / dotifi

dotifi is a python package for creating graphviz dot files and images from Apache NiFi canvases
Apache License 2.0
7 stars 2 forks source link

Ignoring Properties set in Conf File #80

Open 06nenglish opened 3 years ago

06nenglish commented 3 years ago

Describe the bug When Running Dotifi with a Configuration file and no existing file it fails to load the nifi_url, using_ssl, and using_user_pw setting it to the default value instead. When running the command with command line values instead of the config file it works as expected.

To Reproduce Do you have an example NIFI template that demonstrates the issue? All NiFi Templates will cause this issue Steps to reproduce the behavior:

  1. Run dotifi with a conf file specifying the nifi_url and no existing dot file as well as setting the using_ssl and using_user_password properties to true.
  2. The request goes to the default url set, and the using_ssl and using_user_password

configuration_version : 2

verbose: true output_dot_file: hello.dot

output_graphviz_format: svg

depth: 1

nifi_url: https://nifi-1.dev.net:8443/nifi-api

using_ssl: true

using_user_pw: true

nifi_user_name: nifi

nifi_user_password: Password123



**Expected behavior**
Expected to load the nifi_url and properties specified from the conf file

**Screenshots**
![image](https://user-images.githubusercontent.com/9211597/113679171-25660280-96c8-11eb-888d-5992603d2533.png)
**Desktop (please complete the following information):**
    - OS: Centos7
    - NIFI: 1.12.4
    - Python: 3.9.4
    - dotifi: latest

**Additional context**
Add any other context about the problem here.