crowbar/crowbar-openstack

View on GitHub
chef/data_bags/crowbar/migrate/keystone/101_update_default_attributes.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method upgrade has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def upgrade(ta, td, a, d)
  a["ldap"]["user_description_attribute"] = ta["ldap"]["user_description_attribute"]
  a["ldap"]["group_members_are_ids"] = ta["ldap"]["group_members_are_ids"]
  a["ldap"]["user_enabled_emulation_use_group_config"] =
    ta["ldap"]["user_enabled_emulation_use_group_config"]

Method downgrade has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def downgrade(ta, td, a, d)
  a["ldap"].delete("user_description_attribute")
  a["ldap"].delete("group_members_are_ids")
  a["ldap"].delete("user_enabled_emulation_use_group_config")
  a["ldap"]["project_tree_dn"] = ta["ldap"]["project_tree_dn"]

There are no issues that match your filters.

Category
Status