run virsh with -r for read-only access; fixes #3144
Costa Tsaousis (ktsaou) committed
Dec 17, 2017 at 15:13 UTC
0351734161856b8caefa624ad9585d8522b973c4
1 file changed
+1
-1
plugins.d/cgroup-network-helper.sh
+1
-1
@@ -172,7 +172,7 @@ virsh_find_all_interfaces_for_cgroup() {
172
# match only 'network' interfaces from virsh output
173
174
set_source "virsh"
175
- "${virsh}" domiflist ${d} |\
175
+ "${virsh}" -r domiflist ${d} |\
176
sed -n \
177
-e "s|^\([^[:space:]]\+\)[[:space:]]\+network[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+[^[:space:]]\+[[:space:]]\+[^[:space:]]\+$|\1 \1_\2|p" \
178
-e "s|^\([^[:space:]]\+\)[[:space:]]\+bridge[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+[^[:space:]]\+[[:space:]]\+[^[:space:]]\+$|\1 \1_\2|p"