URL:
https://github.com/freeipa/freeipa/pull/1606
Author: amitkumar50
Title: #1606: Uninstalling IPA requires on being in a existent working directory
Action: opened
PR body:
"""
Presently freeipa tests current working directory with os.getcwd()
which throws exception when called on non-existant directory.
Solution can be to call
os.chdir("/root") and set self.cwd variable accordingly.
Tests done:
//console-1
`# mkdir test-delete`
`# cd test-delete`
`# rm -rf /root/test-delete //From console-2`
`# ipa-server-install --uninstall`
..successful..
`# cd /root`
`# ipa-server-install`
..successful..
Still need to address installation of ipa-server from deleted dir.
Can handle in seperate PR.
Resolves:
https://pagure.io/freeipa/issue/7416
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1606/head:pr1606
git checkout pr1606