On Mon, 2008-04-21 at 09:36 -0600, Matt Ryan wrote:

[snip]

> > 
> > Finally, gmetad-python does not like it when the gridname is not set 
> > throwing:
> > 
> >   File "/home/graph/local/src/gmetad-python/gmetad_data.py", line 44, in 
> > generateKey
> >     return ':'.join(vals)
> > TypeError: sequence item 1: expected string, NoneType found
> > 
> > where vals is : ['GRID', None].
> 
> 
> Good catch, I will fix that.
> 


Attached is a patch to fix the issue above.  It sets the default value
for the gridname to an empty string ('') instead of None.



--- gmetad_config.py    2008-04-21 09:46:26.000000000 -0600
+++ ../gmetad/python/gmetad_config.py   2008-04-21 09:45:19.000000000 -0600
@@ -49,7 +49,7 @@
                     GmetadRRA('AVERAGE:0.5:5760:374')
             ],
             SCALABLE : True,
-            GRIDNAME : None,
+            GRIDNAME : '',
             AUTHORITY : 'http://%s/ganglia/' % getfqdn(),
             TRUSTED_HOSTS : [],
             ALL_TRUSTED : False,
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to