소스 검색

Merge pull request #1172 from smunilla/fix_unicode_hostname

atomic-openshift-installer: Error handling for unicode hostnames
Brenton Leanhardt 9 년 전
부모
커밋
607d45f426
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      utils/src/ooinstall/cli_installer.py

+ 1 - 3
utils/src/ooinstall/cli_installer.py

@@ -33,9 +33,7 @@ def is_valid_hostname(hostname):
 def validate_prompt_hostname(hostname):
     if '' == hostname or is_valid_hostname(hostname):
         return hostname
-    raise click.BadParameter('"{}" appears to be an invalid hostname. ' \
-                             'Please double-check this value i' \
-                             'and re-enter it.'.format(hostname))
+    raise click.BadParameter('Invalid hostname. Please double-check this value and re-enter it.')
 
 def get_ansible_ssh_user():
     click.clear()