show security opts in descibe-backup
If there were any security (data-at-rest enc) options ob the backup node,
these will be displayed the describe-backup output
@@ -219,6 +219,7 @@ type bcpReplDesc struct {
LastWriteTS string `json:"last_write_ts" yaml:"last_write_ts"`
LastTransitionTS string `json:"last_transition_ts" yaml:"last_transition_ts"`
IsConfigSvr *bool `json:"configsvr,omitempty" yaml:"configsvr,omitempty"`
+ SecurityOpts *pbm.MongodOptsSec `json:"security,omitempty" yaml:"security,omitempty"`
Error *string `json:"error,omitempty" yaml:"error,omitempty"`
}
@@ -276,6 +277,9 @@ func describeBackup(cn *pbm.PBM, b *descBcp) (fmt.Stringer, error) {
if r.Error != "" {
rv.Replsets[i].Error = &r.Error
}
+ if r.MongodOpts.Security != nil {
+ rv.Replsets[i].SecurityOpts = r.MongodOpts.Security
+ }
}
return rv, err
