@@ -303,6 +303,9 @@ func (predictor *Predictor) UserConfigStr() string {
303303 if predictor .Model != nil {
304304 sb .WriteString (fmt .Sprintf ("%s: %s\n " , ModelKey , * predictor .Model ))
305305 }
306+ if predictor .SignatureKey != nil {
307+ sb .WriteString (fmt .Sprintf ("%s: %s\n " , SignatureKeyKey , * predictor .SignatureKey ))
308+ }
306309 if predictor .PythonPath != nil {
307310 sb .WriteString (fmt .Sprintf ("%s: %s\n " , PythonPathKey , * predictor .PythonPath ))
308311 }
@@ -316,9 +319,6 @@ func (predictor *Predictor) UserConfigStr() string {
316319 d , _ := yaml .Marshal (& predictor .Env )
317320 sb .WriteString (s .Indent (string (d ), " " ))
318321 }
319- if predictor .SignatureKey != nil {
320- sb .WriteString (fmt .Sprintf ("%s: %s\n " , SignatureKeyKey , * predictor .SignatureKey ))
321- }
322322 return sb .String ()
323323}
324324
@@ -364,12 +364,12 @@ func (predictor *Predictor) TensorFlowValidate() error {
364364 }
365365 if strings .HasSuffix (model , ".zip" ) {
366366 if ok , err := awsClient .IsS3PathFile (model ); err != nil || ! ok {
367- return errors .Wrap (ErrorExternalNotFound (model ), TensorFlowKey , ModelKey )
367+ return errors .Wrap (ErrorExternalNotFound (model ), ModelKey )
368368 }
369369 } else {
370370 path , err := GetTFServingExportFromS3Path (model , awsClient )
371371 if path == "" || err != nil {
372- return errors .Wrap (ErrorInvalidTensorFlowDir (model ), TensorFlowKey , ModelKey )
372+ return errors .Wrap (ErrorInvalidTensorFlowDir (model ), ModelKey )
373373 }
374374 predictor .Model = pointer .String (path )
375375 }
@@ -389,7 +389,7 @@ func (predictor *Predictor) ONNXValidate() error {
389389 return err
390390 }
391391 if ok , err := awsClient .IsS3PathFile (model ); err != nil || ! ok {
392- return errors .Wrap (ErrorExternalNotFound (model ), ONNXKey , ModelKey )
392+ return errors .Wrap (ErrorExternalNotFound (model ), ModelKey )
393393 }
394394
395395 if predictor .SignatureKey != nil {
0 commit comments