Closed Bug 551117 Opened 14 years ago Closed 14 years ago

update_from_files.py should read credentials from file

Categories

(Release Engineering :: General, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: rail)

References

Details

Attachments

(1 file)

buildbotcustom/buildbotcustom/bin/update_from_files.py currently is being run from crontab and uses command line parameters to get user/password. 

It would be great if update_from_files.py could read credentials from a file, so we can send the output of the cronjob to release@mozilla.com
Assignee: nobody → raliiev
Chris,

Please take a look. 

The main idea is reading missing command line parameters from an ini file.

Example config:

----------------------------------------
[DEFAULT]
master = master:9999
database = mysql://user@pass:server/base?param1=x&param2=y
name = Description goes here
----------------------------------------

The file can be safely chmoded 600, or even 400 :)
Attachment #431572 - Flags: review?(catlee)
Status: NEW → ASSIGNED
Priority: -- → P3
Attachment #431572 - Flags: review?(catlee) → review+
Attachment #431572 - Flags: checked-in?
Comment on attachment 431572 [details] [diff] [review]
update_from_files.py.diff

changeset:   636:1fa53b45a8f5
Attachment #431572 - Flags: checked-in? → checked-in+
Deployed on production-master, production-master02 and talos-master.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: