mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Rename the "messages" Output of the i18n_messages command to "texts"
This is to prevent a fatal name clash wih the new common "messages" Output. Since i18n_messages is an internal plugin, the change does not affect our public API.
This commit is contained in:
committed by
Martin Kosek
parent
24bca144a8
commit
42300eb55b
@@ -25,7 +25,7 @@ Plugins not accessible directly through the CLI, commands used internally
|
||||
|
||||
import json
|
||||
|
||||
from ipalib import api, errors
|
||||
from ipalib import api
|
||||
from ipalib import Command
|
||||
from ipalib import Str
|
||||
from ipalib.output import Output
|
||||
@@ -680,10 +680,10 @@ class i18n_messages(Command):
|
||||
},
|
||||
}
|
||||
has_output = (
|
||||
Output('messages', dict, doc=_('Dict of I18N messages')),
|
||||
Output('texts', dict, doc=_('Dict of I18N messages')),
|
||||
)
|
||||
def execute(self, **options):
|
||||
return dict([("messages",json_serialize(self.messages))])
|
||||
return dict(texts=json_serialize(self.messages))
|
||||
|
||||
def output_for_cli(self, textui, result, *args, **options):
|
||||
print json.dumps(result, default=json_serialize)
|
||||
|
||||
Reference in New Issue
Block a user