satprep_patch_freeze.py not working for systems without base channel
Closed this issue · 7 comments
novonilc commented
$ ./satprep_patch_freeze.py -a auth -g Test_for_Patching
ERROR:satprep_patch_freeze:Unable to scan system 'dev-stmnt-app-02', check hostname and profile name!
ERROR:satprep_patch_freeze:Unable to scan system 'dev-stmnt-db-01', check hostname and profile name!
ERROR:satprep_patch_freeze:Unable to scan system 'dev-stmnt-idx-01', check hostname and profile name!
ERROR:satprep_patch_freeze:Unable to scan system 'dev-stmnt-app-03', check hostname and profile name!
ERROR:satprep_patch_freeze:Unable to scan system 'dev-stmnt-proxy-01', check hostname and profile name!
ERROR:satprep_patch_freeze:Unable to scan system 'dev-stmnt-db-02', check hostname and profile name!
ERROR:satprep_patch_freeze:Unable to scan system 'dev-stmnt-app-01', check hostname and profile name!
Traceback (most recent call last):
File "./satprep_patch_freeze.py", line 313, in <module>
main(options)
File "./satprep_patch_freeze.py", line 237, in main
remapSystems(client, key)
File "./satprep_patch_freeze.py", line 165, in remapSystems
else: myNewBase = options.targetLabel+"-"+options.targetDate+"."+myBase["label"]
KeyError: 'label'
novonilc commented
This error only comes if the machine is not subscribed to any channels
novonilc commented
Its working still not able to clone some channels and got errors as before
Sent from my Iphone
On Mon, Dec 21, 2015 at 7:16 AM -0800, "Christian Stankowic" notifications@github.com wrote:
Is cloning channels now working for you? (see also issue #46)
—
Reply to this email directly or view it on GitHub.
stdevel commented
Added a workaround for hosts without valid base channel. Checked this in my lab - is this also working for you?
novonilc commented
No still not working. I got this with your latest code.
novonilc commented
ohh ok hold on i will check now with your latest commit
novonilc commented
Yes its working...Thanks