~rvb/maas/bug-1384001-redux-2

« back to all changes in this revision

Viewing changes to src/provisioningserver/cobblerclient.py

  • Committer: Tarmac
  • Author(s): Gavin Panella
  • Date: 2012-03-15 17:10:38 UTC
  • mfrom: (288.2.5 MaaS-to-MAAS)
  • Revision ID: ed@carob-20120315171038-vwgdkkyodun9fqo4
[r=rvb][bug=][author=allenap] MaaS is now known as MAAS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
    # keep an accurate record of which attributes we use for which types
338
338
    # of objects.
339
339
    # Some attributes in Cobbler uses dashes as separators, others use
340
 
    # underscores.  In MaaS, use only underscores.
 
340
    # underscores.  In MAAS, use only underscores.
341
341
    known_attributes = []
342
342
 
343
343
    # What attributes does Cobbler require for this type of object?
381
381
    def _normalize_attribute(cls, attribute_name, attributes=None):
382
382
        """Normalize an attribute name.
383
383
 
384
 
        Cobbler mixes dashes and underscores in attribute names.  MaaS may
 
384
        Cobbler mixes dashes and underscores in attribute names.  MAAS may
385
385
        pass attributes as keyword arguments internally, where dashes are not
386
386
        an option.  Hide the distinction by looking up the proper name in
387
387
        `known_attributes` by default, but `attributes` can be passed to