Red Hat Bugzilla – Bug 1409697
'rhui {cds,haproxy} delete' reports success on nonexisting instances
Last modified: 2018-03-17 03:01:38 EDT
Description of problem: No message "There are no registered instances with that hostname." when deleting nonexisting cds or haproxy with rhui CLI. Version-Release number of selected component (if applicable): iso 20161220 How reproducible: always Steps to Reproduce: 1. rhui {cds,haproxy} delete nonexisting_hostname Actual results: >> [root@rhua ~]# rhui cds list -= RHUI CDSs =- Hostname: cds01.example.com SSH Username: ec2-user SSH Private Key: /root/.ssh/id_rsa_rhua ------------------------------------------------------------------------------ >> [root@rhua ~]# rhui haproxy list -= RHUI HAProxy Load-balancers =- Hostname: hap01.example.com SSH Username: ec2-user SSH Private Key: /root/.ssh/id_rsa_rhua ------------------------------------------------------------------------------ [root@rhua ~]# rhui cds delete cds02.example.com ------------------------------------------------------------------------------ [root@rhua ~]# echo $? 0 [root@rhua ~]# rhui haproxy delete hap02.example.com ------------------------------------------------------------------------------ [root@rhua ~]# rhui haproxy delete hap02.example.com --force ------------------------------------------------------------------------------ [root@rhua ~]# rhui cds delete cds02.example.com --force ------------------------------------------------------------------------------ Expected results: "There are no registered instances with that hostname."