Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

69 describe broker also accepts broker host name #112

Merged

Conversation

garrettthomaskth
Copy link
Contributor

No description provided.

garrettthomas added 30 commits September 24, 2019 17:39
…d-stdout

# Conflicts:
#	tests/integration/test_topic_controller.py
…nd 'master' of https://github.com/real-digital/esque into 62-accept-and-output-standardized-stdin-and-stdout
garrettthomas added 17 commits October 10, 2019 11:06
…t-standardized-stdin-and-stdout

# Conflicts:
#	esque/cli/commands.py
#	esque/cli/options.py
#	esque/resources/broker.py
#	tests/integration/commands/test_apply.py
#	tests/integration/commands/test_get.py
#	tests/integration/commands/test_ping.py
…also-accepts-broker-host-name

# Conflicts:
#	esque/cli/commands.py
…d-stdin-and-stdout' into 69-describe-broker-also-accepts-broker-host-name

# Conflicts:
#	esque/cli/commands.py
…t-name

# Conflicts:
#	esque/cli/commands.py
#	esque/cli/helpers.py
#	esque/cli/output.py
#	esque/resources/broker.py
#	tests/conftest.py
#	tests/integration/commands/test_apply.py
#	tests/integration/commands/test_creation.py
#	tests/integration/commands/test_deletion.py
#	tests/integration/commands/test_describe.py
#	tests/integration/commands/test_edit.py
#	tests/integration/commands/test_get.py
#	tests/integration/commands/test_ping.py
#	tests/unit/test_output.py
@@ -417,8 +426,16 @@ def get_watermarks(state: State, topic_name: str, output_format: str):
@click.argument("broker-id", callback=fallback_to_stdin, autocompletion=list_brokers, required=False)
@output_format_option
@default_options
def describe_broker(state: State, broker_id: str, output_format: str):
broker = Broker.from_id(state.cluster, broker_id).describe()
def describe_broker(state, broker_id, output_format):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename broker_id to broker and add a help text stating that it actually supports both broker id and host:port combination? Actually we could make the port optional and only fail if there is more than one broker for a given host.

@garrettthomaskth garrettthomaskth merged commit b2df72a into master Nov 14, 2019
@garrettthomaskth garrettthomaskth deleted the 69-describe-broker-also-accepts-broker-host-name branch November 14, 2019 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants