chef/data_bags/crowbar/migrate/keystone/101_update_default_attributes.rb
Method upgrade
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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"]
- Create a ticketCreate a ticket
Method downgrade
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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"]
- Create a ticketCreate a ticket