File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -495,11 +495,25 @@ func (dc *dellConfigurator) configiDRAC(ctx context.Context) error {
495
495
}
496
496
497
497
func (dc * dellConfigurator ) acceptEULA (ctx context.Context ) error {
498
- _ , err := racadm (ctx , "supportassist" , "accepteula" )
499
- if strings .HasPrefix (err .Error (), "ERROR: SRV095" ) {
498
+ /*
499
+ If we have already accepted EULA, we will get the following message:
500
+ SRV074: The SupportAssist End User License Agreement (EULA)is accepted by iDRAC user root
501
+ via iDRAC interface RACADM
502
+ */
503
+ out , err := racadm (ctx , "supportassist" , "geteulastatus" )
504
+ if err != nil {
505
+ return fmt .Errorf ("failed to get status EULA by racadm command: %w" , err )
506
+ }
507
+ if strings .Contains (out , "SRV074:" ) {
508
+ // already accepted
500
509
return nil
501
510
}
502
- return err
511
+
512
+ _ , err = racadm (ctx , "supportassist" , "accepteula" )
513
+ if err != nil {
514
+ return fmt .Errorf ("failed to accept EULA by racadm command: %w" , err )
515
+ }
516
+ return nil
503
517
}
504
518
505
519
func (dc * dellConfigurator ) configSNMP (ctx context.Context ) error {
You can’t perform that action at this time.
0 commit comments