From eb4feed1b6e5a47733390a5c4ad7f731fd9a5fd1 Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Thu, 8 Mar 2018 13:03:26 -0800 Subject: [PATCH] Associate --validate with -V. (#334) * Associate --validate with -V. This fixes https://github.com/draios/falco/issues/322. * Pin the version of libvirt-python to < 4.1.0 Evidently a recent libvirt-python has build problems on ubuntu. See https://bugs.launchpad.net/openstack-requirements/+bug/1753539. Pin to releases < 4.1.0 to avoid picking up the newer one that has the build failure. --- .travis.yml | 1 + userspace/falco/falco.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a7ad75b3..5eff4589 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ install: - curl -Lo avocado-36.0-tar.gz https://github.com/avocado-framework/avocado/archive/36.0lts.tar.gz - tar -zxvf avocado-36.0-tar.gz - cd avocado-36.0lts + - sed -e 's/libvirt-python>=1.2.9/libvirt-python>=1.2.9,<4.1.0/' < requirements.txt > /tmp/requirements.txt && mv /tmp/requirements.txt ./requirements.txt - sudo -H pip install -r requirements.txt - sudo python setup.py install - cd ../falco diff --git a/userspace/falco/falco.cpp b/userspace/falco/falco.cpp index e4d1af51..6943a927 100644 --- a/userspace/falco/falco.cpp +++ b/userspace/falco/falco.cpp @@ -283,7 +283,7 @@ int falco_init(int argc, char **argv) {"pidfile", required_argument, 0, 'P' }, {"unbuffered", no_argument, 0, 'U' }, {"version", no_argument, 0, 0 }, - {"validate", required_argument, 0, 0 }, + {"validate", required_argument, 0, 'V' }, {"writefile", required_argument, 0, 'w' }, {0, 0, 0, 0}