Skip to content

Commit

Permalink
fix: jans-cli code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed May 5, 2022
1 parent 1f9b62d commit 1dc5cb0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions jans-cli/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ def tabular_data(self, data, ome):

print(tabulate(tab_data, headers, tablefmt="grid"))

def process_get(self, endpoint, return_value=False, parameters={}):
def process_get(self, endpoint, return_value=False, parameters=None):
clear()
if not return_value:
title = endpoint.name
Expand Down Expand Up @@ -1204,11 +1204,8 @@ def get_enum(self, schema):


def get_input_for_schema_(self, schema, model, spacing=0, initialised=False, getitem=None, required_only=False):
#print(self.current_menu, self.current_menu.path)
#print(schema)
#input("enter: ")
self.get_enum(schema)

self.get_enum(schema)
data = {}
for prop in schema['properties']:
item = schema['properties'][prop]
Expand Down

0 comments on commit 1dc5cb0

Please sign in to comment.