Commit 521dba1
authored
Fix delta bug (#163)
Issue #, if available:
If the user creates a training job with a profileRuleConfiguration but without a debugRuleConfiguration the controller crashes because it compares profileRuleConfiguration and debugRuleConfiguration(which could have a length of zero) and causes an index error.
Steps to reproduce:
Run trainingjob with normal parameters(https://github.com/aws-controllers-k8s/sagemaker-controller/blob/main/samples/training/my-training-job.yaml) but with a profileRuleConfiguration and profilerConfig
Description of changes:
Changes custom set defaults function to compare only profileRuleConfiguration.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent c752d87 commit 521dba1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments