mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
[BeatsCM] fix incorrect beat name in enroll command, remove translation of command (#27036)
This commit is contained in:
parent
8ad6949269
commit
c039cd80d3
1 changed files with 11 additions and 17 deletions
|
@ -42,7 +42,7 @@ export class EnrollBeat extends React.Component<ComponentProps, ComponentState>
|
||||||
this.state = {
|
this.state = {
|
||||||
enrolledBeat: null,
|
enrolledBeat: null,
|
||||||
hasPolledForBeat: false,
|
hasPolledForBeat: false,
|
||||||
command: 'sudo filebeat',
|
command: 'sudo {{beatType}}',
|
||||||
beatType: 'filebeat',
|
beatType: 'filebeat',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -144,17 +144,15 @@ export class EnrollBeat extends React.Component<ComponentProps, ComponentState>
|
||||||
value={this.state.command}
|
value={this.state.command}
|
||||||
options={[
|
options={[
|
||||||
{
|
{
|
||||||
value: `sudo ${this.state.beatType}`,
|
value: `sudo {{beatType}}`,
|
||||||
text: 'DEB / RPM',
|
text: 'DEB / RPM',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: `PS C:\\Program Files\\${capitalize(this.state.beatType)}> ${
|
value: `PS C:\\Program Files\\{{beatTypeInCaps}}> {{beatType}}.exe`,
|
||||||
this.state.beatType
|
|
||||||
}.exe`,
|
|
||||||
text: 'Windows',
|
text: 'Windows',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: `./${this.state.beatType}`,
|
value: `./{{beatType}}`,
|
||||||
text: 'MacOS',
|
text: 'MacOS',
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
@ -188,17 +186,13 @@ export class EnrollBeat extends React.Component<ComponentProps, ComponentState>
|
||||||
className="euiFieldText euiFieldText--fullWidth"
|
className="euiFieldText euiFieldText--fullWidth"
|
||||||
style={{ textAlign: 'left' }}
|
style={{ textAlign: 'left' }}
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
{`$ ${this.state.command
|
||||||
id="xpack.beatsManagement.enrollBeat.stateCommandEnrollLocationProtocolTitle"
|
.replace('{{beatType}}', this.state.beatType)
|
||||||
defaultMessage="$ {stateCommand} enroll {locationProtocol}"
|
.replace('{{beatTypeInCaps}}', capitalize(this.state.beatType))} enroll ${
|
||||||
values={{
|
window.location.protocol
|
||||||
stateCommand: this.state.command,
|
}://${window.location.host} ${this.props.frameworkBasePath} ${
|
||||||
locationProtocol: window.location.protocol,
|
this.props.enrollmentToken
|
||||||
}}
|
}`}
|
||||||
/>
|
|
||||||
{`//`}
|
|
||||||
{window.location.host}
|
|
||||||
{this.props.frameworkBasePath} {this.props.enrollmentToken}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue