← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1208560] Re: ldap not lazily imported

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1208560

Title:
  ldap not lazily imported

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  The `ldap` python module isn't required by requirements.txt.

  However, in order to generate sample configs, all modules need to be
  importable.

  Since `ldap` is imported normally, this causes developers without
  `ldap` install to generate sample configs that are missing the ldap
  configuration parameters. This happens because on ImportError, the
  sample config generator skips the module.

  The solution is to use a 'lazy-import' pattern.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1208560/+subscriptions