Skip to content

Commit

Permalink
Correct work-python deprecation message (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-at-redhat authored Aug 21, 2024
1 parent d2ab7f0 commit b397cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/workceptor/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type pythonUnit struct {

// Start launches a job with given parameters.
func (pw *pythonUnit) Start() error {
pw.UpdateBasicStatus(WorkStatePending, "[DEPRECATION WARNING] This option is not currently being used. This feature will be removed from receptor in a future release.", 0)
pw.UpdateBasicStatus(WorkStatePending, "[DEPRECATION WARNING] '--work-python' option is not currently being used. This feature will be removed from receptor in a future release.", 0)
pw.UpdateBasicStatus(WorkStatePending, "Launching Python runner", 0)
config := make(map[string]interface{})
for k, v := range pw.config {
Expand Down Expand Up @@ -75,7 +75,7 @@ func (cfg WorkPythonCfg) NewWorker(_ BaseWorkUnitForWorkUnit, w *Workceptor, uni
func (cfg WorkPythonCfg) Run() error {
err := MainInstance.RegisterWorker(cfg.WorkType, cfg.NewWorker, false)

errWithDeprecation := errors.Join(err, errors.New("[DEPRECATION WARNING] This option is not currently being used. This feature will be removed from receptor in a future release"))
errWithDeprecation := errors.Join(err, errors.New("[DEPRECATION WARNING] 'work-python' option is not currently being used. This feature will be removed from receptor in a future release"))

return errWithDeprecation
}
Expand Down

0 comments on commit b397cba

Please sign in to comment.