Skip to content

Commit

Permalink
if Client is not instantiated, optimistically instantiate for version…
Browse files Browse the repository at this point in the history
… checking
  • Loading branch information
Chaffelson committed Jan 21, 2021
1 parent 26a2a68 commit 3c3b97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipyapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def check_version(base, comparator=None, service='nifi'):
try:
config = nipyapi.config.registry_config
if config.api_client is None:
raise ValueError("Not connected to NiFi Registry")
config = nipyapi.registry.ApiClient()
reg_swagger_def = config.api_client.call_api(
resource_path='/swagger/swagger.json', method='GET', _preload_content=False,
auth_settings=['tokenAuth', 'Authorization']
Expand Down

0 comments on commit 3c3b97d

Please sign in to comment.