Federico Simoncelli has uploaded a new change for review.
Change subject: The config parameters must be strings ......................................................................
The config parameters must be strings
The configuration values must be strings to avoid errors such as:
TypeError: argument of type 'int' is not iterable (ConfigParser.py:586)
Apparently the value for vm_sample_disk_latency_interval was the only one not respecting this rule.
Change-Id: Id51af12b809906848f9dfbde17c42ce56b887772 --- M vdsm/config.py.in 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/59/459/1 -- To view, visit http://gerrit.ovirt.org/459 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange Gerrit-Change-Id: Id51af12b809906848f9dfbde17c42ce56b887772 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com
Dan Kenigsberg has posted comments on this change.
Change subject: The configuration values must be strings ......................................................................
Patch Set 2: Looks good to me, approved
Grr, I should have noticed that error message when verifying your patch.
BTW, config.parameters should be called _parameters. I even dare to suggest that they should be deleted after use.
-- To view, visit http://gerrit.ovirt.org/459 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Id51af12b809906848f9dfbde17c42ce56b887772 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com
Igor Lvovsky has posted comments on this change.
Change subject: The configuration values must be strings ......................................................................
Patch Set 2: Looks good to me, approved
-- To view, visit http://gerrit.ovirt.org/459 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Id51af12b809906848f9dfbde17c42ce56b887772 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com
Federico Simoncelli has posted comments on this change.
Change subject: The configuration values must be strings ......................................................................
Patch Set 2:
BTW, config.parameters should be called _parameters. I even dare to suggest that they should be deleted after use.
We didn't discuss this but I thought it was nice to expose them instead. Any tool would have the opportunity to read the comments and the default values (for example we could have something like: "vdsm-tool help vars vm_sample_disk_latency_interval" to display the comment/default). I remember I spent some time researching if it was possible doing it in ConfigParser object but it wasn't (I should have subclassed it).
-- To view, visit http://gerrit.ovirt.org/459 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Id51af12b809906848f9dfbde17c42ce56b887772 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com
Igor Lvovsky has posted comments on this change.
Change subject: The configuration values must be strings ......................................................................
Patch Set 2: Verified
-- To view, visit http://gerrit.ovirt.org/459 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: Id51af12b809906848f9dfbde17c42ce56b887772 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com
Federico Simoncelli has submitted this change and it was merged.
Change subject: The configuration values must be strings ......................................................................
The configuration values must be strings
The configuration values must be strings to avoid errors such as:
TypeError: argument of type 'int' is not iterable (ConfigParser.py:586)
Apparently the value for vm_sample_disk_latency_interval was the only one not respecting this rule.
Change-Id: Id51af12b809906848f9dfbde17c42ce56b887772 --- M vdsm/config.py.in 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Federico Simoncelli: Dan Kenigsberg: Looks good to me, approved Igor Lvovsky: Verified; Looks good to me, approved
-- To view, visit http://gerrit.ovirt.org/459 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Id51af12b809906848f9dfbde17c42ce56b887772 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com
vdsm-patches@lists.fedorahosted.org