← Back to team overview

savanna-all team mailing list archive

Re: Source of truth


Hi Jon,

the core Savanna code is under development and it can have some outdated or fixed names. I think that it's not a problem to fix such difference in future.

As for the actual code truth - I'll try to update at least code to not miss some needed attributes and than update docs to contain all updates.

P.S. Thank you for reminding me about the outdated config object :)

Sincerely yours,
Sergey Lukjanov
Software Engineer
Mirantis Inc.
GTalk: me@xxxxxxxxxxx
Skype: lukjanovsv

On Jun 5, 2013, at 0:39, Jon Maron <jmaron@xxxxxxxxxxxxxxx> wrote:

> Hi,
>   I'm trying to figure out the appropriate attribute names to use for development.  There appear to be some discrepancies between the documentation and the actual source.  For example, here are the attributes for the config object as described by the documentation:
> name	string		
> description	string		
> type	enum		possible values are: 'string', 'integer', 'boolean'
> default_value	same as 'type'		
> is_optional	boolean		
> applicable_target	string		The target could be either a service returned by get_node_processes(...) call in form of 'service:<service name>', or 'general'
> scope	string		could be either 'node' or 'cluster'
>   Whereas the source seems to indicate different attribute names:
>         self.name = name
>         self.applicable_target = applicable_target
>         self.config_type = config_type
>         self.config_values = config_values
>         self.default_value = default_value
>         self.is_optional = is_optional
>         self.description = description
> 	(NOTE: no scope attribute)
>   I've found a number of these discrepancies in the code, and my assumption would be the code is the actual source of truth?
> -- Jon
> -- 
> Mailing list: https://launchpad.net/~savanna-all
> Post to     : savanna-all@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~savanna-all
> More help   : https://help.launchpad.net/ListHelp