Files
nomad/command
Mahmood Ali 52c37e16aa Only initialize task.VolumeMounts when not-nil (#10990)
1.1.3 had a bug where task.VolumeMounts will be an empty slice instead of nil. Eventually, it gets canonicalized and is set to `nil`, but it seems to confuse dry-run planning.

The regression was introduced in https://github.com/hashicorp/nomad/pull/10855/files#diff-56b3c82fcbc857f8fb93a903f1610f6e6859b3610a4eddf92bad9ea27fdc85ecL1028-R1037 . Curiously, it's the only place where `len(apiTask.VolumeMounts)` check was dropped. I assume it was dropped accidentally.

Fixes #10981
2021-08-02 13:08:10 -04:00
..
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2020-12-09 11:05:18 -08:00
2020-10-21 14:05:46 -04:00
2020-10-21 14:05:46 -04:00
2020-10-21 14:05:46 -04:00
2020-12-09 11:05:18 -08:00
2021-05-07 13:58:40 -04:00
2020-12-09 11:05:18 -08:00
2020-11-30 11:12:06 -05:00
2020-12-09 11:05:18 -08:00
2020-10-19 09:30:15 -04:00
2020-12-09 11:05:18 -08:00
2021-04-01 11:16:52 -04:00
2021-03-31 16:37:09 -04:00