Hello everyone!
First of all, I apologize for my English level
I'm using python-bugzilla to create bugs.It has been working properly, but now I have to add a custom field named "hostname" to the Bugzilla server and I don't achieve that python-bugzilla stores data in that field.
I always get this message:
File "/usr/bin/bugzilla", line 332, in <module> main() File "/usr/bin/bugzilla", line 328, in main buglist = _do_new(bz, opt) File "/usr/bin/bugzilla", line 231, in _do_new sub_component=opt.sub_component or None, TypeError: build_createbug() got an unexpected keyword argument 'cf_hostname'
What is the best way to modify the program and add my request?
Thank you
Hello Jaime,
The version in master supports the --field option [1] for the new command. You could try using that, in your case,
--field=cf_hostname=xyz
Hope that helps.
-arun
[1] https://git.fedorahosted.org/cgit/python-bugzilla.git/commit/?id=0aea1631225...
----- Original Message -----
From: "Jaime Gómez del Pulgar Ruano" silver_james@msn.com To: python-bugzilla@lists.fedorahosted.org Sent: Monday, September 1, 2014 8:09:02 PM Subject: [python-bugzilla] New bug using custom fields
Hello everyone!
First of all, I apologize for my English level
I'm using python-bugzilla to create bugs.It has been working properly, but now I have to add a custom field named "hostname" to the Bugzilla server and I don't achieve that python-bugzilla stores data in that field.
I always get this message:
File "/usr/bin/bugzilla", line 332, in <module> main() File "/usr/bin/bugzilla", line 328, in main buglist = _do_new(bz, opt) File "/usr/bin/bugzilla", line 231, in _do_new sub_component=opt.sub_component or None, TypeError: build_createbug() got an unexpected keyword argument 'cf_hostname'
What is the best way to modify the program and add my request?
Thank you _______________________________________________ python-bugzilla mailing list python-bugzilla@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/python-bugzilla
Hello Arun,
I've modified bin/bugzilla file using the commit you gave me and it works like a charm!
Thank you so much,
Jaime
Date: Mon, 1 Sep 2014 20:28:00 -0400 From: abn@redhat.com To: silver_james@msn.com CC: python-bugzilla@lists.fedorahosted.org Subject: Re: [python-bugzilla] New bug using custom fields
Hello Jaime,
The version in master supports the --field option [1] for the new command. You could try using that, in your case,
--field=cf_hostname=xyz
Hope that helps.
-arun
[1] https://git.fedorahosted.org/cgit/python-bugzilla.git/commit/?id=0aea1631225...
----- Original Message -----
From: "Jaime Gómez del Pulgar Ruano" silver_james@msn.com To: python-bugzilla@lists.fedorahosted.org Sent: Monday, September 1, 2014 8:09:02 PM Subject: [python-bugzilla] New bug using custom fields
Hello everyone!
First of all, I apologize for my English level
I'm using python-bugzilla to create bugs.It has been working properly, but now I have to add a custom field named "hostname" to the Bugzilla server and I don't achieve that python-bugzilla stores data in that field.
I always get this message:
File "/usr/bin/bugzilla", line 332, in <module> main() File "/usr/bin/bugzilla", line 328, in main buglist = _do_new(bz, opt) File "/usr/bin/bugzilla", line 231, in _do_new sub_component=opt.sub_component or None, TypeError: build_createbug() got an unexpected keyword argument 'cf_hostname'
What is the best way to modify the program and add my request?
Thank you _______________________________________________ python-bugzilla mailing list python-bugzilla@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/python-bugzilla
python-bugzilla@lists.stg.fedorahosted.org