Skip to content

Commit 1dad0bd

Browse files
committed
Removing Memoization
1 parent 1a020de commit 1dad0bd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

app/models/manageiq/providers/vmware/cloud_manager.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def self.description
3535
end
3636

3737
def self.params_for_create
38-
@params_for_create ||= {
38+
{
3939
:fields => [
4040
{
4141
:component => "select",
@@ -208,15 +208,15 @@ def self.params_for_create
208208
:component => "text-field",
209209
:id => "authentications.amqp.userid",
210210
:name => "authentications.amqp.userid",
211-
:label => "Username",
211+
:label => _("Username"),
212212
:isRequired => true,
213213
:validate => [{:type => "required"}],
214214
},
215215
{
216216
:component => "password-field",
217217
:id => "authentications.amqp.password",
218218
:name => "authentications.amqp.password",
219-
:label => "Password",
219+
:label => _("Password"),
220220
:type => "password",
221221
:isRequired => true,
222222
:validate => [{:type => "required"}],

app/models/manageiq/providers/vmware/container_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def self.verify_credentials(args)
8282
end
8383

8484
def self.params_for_create
85-
@params_for_create ||= {
85+
{
8686
:fields => [
8787
{
8888
:component => 'sub-form',

app/models/manageiq/providers/vmware/infra_manager.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def self.description
5353
end
5454

5555
def self.params_for_create
56-
@params_for_create ||= {
56+
{
5757
:fields => [
5858
{
5959
:component => 'text-field',
@@ -216,15 +216,15 @@ def self.params_for_create
216216
:component => "text-field",
217217
:id => "authentications.console.userid",
218218
:name => "authentications.console.userid",
219-
:label => "Username",
219+
:label => _("Username"),
220220
:isRequired => true,
221221
:validate => [{:type => "required"}],
222222
},
223223
{
224224
:component => "password-field",
225225
:id => "authentications.console.password",
226226
:name => "authentications.console.password",
227-
:label => "Password",
227+
:label => _("Password"),
228228
:type => "password",
229229
:isRequired => true,
230230
:validate => [{:type => "required"}],

0 commit comments

Comments
 (0)