Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def get_auth_info_params(auth_type):
# special target resource, independent implementation
target = RESOURCE.ConfluentKafka
server_params = ('--bootstrap-server xxx.eastus.azure.confluent.cloud:9092 '
'--kafka-key Name --kafka-secret Secret ')
'--kafka-key Name --kafka-secret Secret')
registry_params = ('--schema-registry https://xxx.eastus.azure.confluent.cloud '
'--schema-key Name --schema-secret Secret')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ def add_source_resource_block(context, source, enable_id=True, validate_source_i

required_args = []
for arg, content in SOURCE_RESOURCES_PARAMS.get(source).items():
id_arg = '\'--id\'' if enable_id else '\'--source-id\''
context.argument(arg, options_list=content.get('options'), type=str,
help='{}. Required if \'--source-id\' is not specified.'.format(content.get('help')))
help='{}. Required if {} is not specified.'.format(content.get('help'), id_arg))
required_args.append(content.get('options')[0])

validator_kwargs = {'validator': validate_params} if validate_source_id else {}
Expand Down
Loading