Show AWS info regardless of failed auth

This commit is contained in:
itay 2019-02-18 11:53:52 +02:00
parent af5e791e1b
commit f5b9c6fe46
1 changed files with 9 additions and 7 deletions

View File

@ -327,10 +327,7 @@ class RunMonkeyPageComponent extends AuthComponent {
</div>
</div>
</div>
{
this.state.awsUpdateFailed ?
<div className="col-sm-8 col-sm-offset-2" style={{'fontSize': '1.2em'}}>
<p className="alert alert-danger" role="alert">Authentication failed.</p>
<p className="alert alert-info">
<i className="glyphicon glyphicon-info-sign" style={{'marginRight': '5px'}}/>
In order to remotely run commands on AWS EC2 instances, please make sure you have
@ -339,6 +336,11 @@ class RunMonkeyPageComponent extends AuthComponent {
AWS <a href="https://docs.aws.amazon.com/console/ec2/run-command/troubleshooting" target="_blank">troubleshooting guide</a>.
</p>
</div>
{
this.state.awsUpdateFailed ?
<div className="col-sm-8 col-sm-offset-2" style={{'fontSize': '1.2em'}}>
<p className="alert alert-danger" role="alert">Authentication failed.</p>
</div>
:
null
}