glean/glean
Matthew Thode 4ef3e3b0e7
add hosts entries and ssh keys only once
Some users add a newline to their key, strip the key when checking if
it's already added.

Stop using regex (that didn't work) when checking if we already added a
hosts entry.  Use a simple startswith() instead.

Switch to use MagicMock as it has support for iteration.

Change-Id: Ibeabbf1c4448933cdf274e6667c5a9493f3e5e37
Signed-off-by: Matthew Thode <mthode@mthode.org>
2021-01-06 15:28:43 -06:00
..
_vendor Fix SUSE detection on Tumbleweed and SLE15 2018-02-17 12:49:14 -05:00
init switch glean.sh path in gentoo openrc init 2020-06-22 12:56:28 -05:00
tests add hosts entries and ssh keys only once 2021-01-06 15:28:43 -06:00
__init__.py Rename module to Glean 2015-04-13 04:45:28 +00:00
cmd.py add hosts entries and ssh keys only once 2021-01-06 15:28:43 -06:00
install.py switch glean.sh path in gentoo openrc init 2020-06-22 12:56:28 -05:00
systemlock.py Create systemwide lock for glean 2015-08-17 14:56:09 +00:00
utils.py Add networkd support 2018-03-27 11:03:51 -05:00