We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4317f44 commit cd438d0Copy full SHA for cd438d0
elasticsearch-api/utils/thor/generate_source.rb
@@ -93,9 +93,18 @@ def generate
93
94
def __full_namespace
95
names = @endpoint_name.split('.')
96
- return names unless @xpack
97
-
98
- names.first == 'xpack' ? names : ['xpack', names].flatten
+ if @xpack
+ names = (names.first == 'xpack' ? names : ['xpack', names].flatten)
+ # Return an array with 'ml' renamed to 'machine_learning' and 'ilm' to
99
+ # 'index_lifecycle_management'
100
+ names.map do |name|
101
+ name
102
+ .gsub(/^ml$/, 'machine_learning')
103
+ .gsub(/^ilm$/, 'index_lifecycle_management')
104
+ end
105
+ else
106
+ names
107
108
end
109
110
# Create the hierarchy of directories based on API namespaces
0 commit comments