Red Hat Bugzilla – Bug 1460589
[WALA] deprovision is executed even if input 'n'
Last modified: 2017-07-24 05:32:23 EDT
+++ This bug was initially created as a clone of Bug #1460588 +++
Description of problem:
When we run "waagent -deprovision" and input "n" at the confirmation, the deprovisioning is still executed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Prepare a running VM in Azure.
2. Ssh login. Run "waagent -deprovision" and input "n" and "Enter" at the confirmation(Do you want to proceed (y/n)n)
The deprovisioning is still executed.
The deprovisioning is not executed.
1. The root cause is in pa/deprovision/default.py Line#220, the return value of self.do_confirmation(force=force) is not used. So that no matter what we input, it will go on deprovisioning.
--- Additional comment from Red Hat Bugzilla Rules Engine on 2017-06-12 02:28:29 EDT ---
Since this bug report was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Fixed in v2.2.14
Verify in WALinuxAgent-2.2.14-1.el6
RHEL version: RHEL-6.9-ondemand image
Steps: As description
Close this issue because WALinuxAgent-2.2.14-1.el7/6 has shipped.