Commit 32b7305
committed
reboot-limit: handle empty dev group gracefully
The reboot-limit-dev target was failing when the dev group had no
hosts, which is a common configuration when not using A/B testing.
Fix by checking if the dev group has any hosts before attempting
to run ansible-playbook. This allows reboot-limit-tests to work
correctly even when only baseline hosts are configured.
The check uses a simple grep to see if there are any hostnames
listed after the [dev] group header in the hosts file.
Generated-by: Claude AI
Reviewed-by: Chuck Lever <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>1 parent cbff820 commit 32b7305
1 file changed
+17
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
178 | 179 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
191 | 196 | | |
192 | 197 | | |
193 | 198 | | |
| |||
0 commit comments