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

Handled empty hostname in server-del command #13

Closed
wants to merge 1 commit into from

Conversation

Akasurde
Copy link
Member

@Akasurde Akasurde commented Aug 23, 2016

Fixes: https://fedorahosted.org/freeipa/ticket/6248

Signed-off-by: Abhijeet Kasurde akasurde@redhat.com

server_list = []
try:
server_list = kw['cn']
except Exception as e:
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Can you please use KeyError?
  2. Please remove 'as e'. e is unused variable
  3. you can use
server_list = kw.get('cn')
if not server_list:
    raise err......

@MartinBasti
Copy link
Contributor

NACK, see inline comments

Fixes: https://fedorahosted.org/freeipa/ticket/6248

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@MartinBasti MartinBasti added the ack Pull Request approved, can be merged label Aug 24, 2016
@MartinBasti
Copy link
Contributor

@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Aug 24, 2016
@Akasurde
Copy link
Member Author

@mbasti-rh @stlaz Thanks for comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants