Actions
Bug #27631
closedforeman-rake db:migrate fails with hidden parameters
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
DB migrations
Target version:
-
Description
During migration from 1.21 to 1.22, foreman-rake db:migrate fails with error:
== 20181105061336 CastKeyTypesAndValuesInParameters: migrating ================ rake aborted! StandardError: An error has occurred, this and all later migrations canceled: 765: unexpected token at '*****' ...
I have a domain parameter with the 'hidden' flag. Parameter value is shown as '*****' and is not supported by 20181105061336_cast_key_types_and_values_in_parameters.rb
Updated by Tomer Brisker over 5 years ago
- Related to Feature #4127: Array, Boolean and other types support in "hostgroup parameters" added
Updated by Anthony Chevalet over 5 years ago
- Status changed from New to Rejected
my bad.. the parameter was actually a string with value "*****" and hidden_value: false, wrongly generated by an import script..
irb(main):002:0> Parameter.where(name: 'domainAdminAccountPassword') => #<ActiveRecord::Relation [#<DomainParameter id: 3, name: "domainAdminAccountPassword", value: "*****", reference_id: 3, created_at: "2018-08-21 22:50:09", updated_at: "2018-08-22 00:11:55", type: "DomainParameter", priority: 30, hidden_value: false, key_type: nil>]>
Actions