Fabio Alessandro Locati
aef588f3a3
Use native YAML ( #3440 )
...
* Use native YAML
* Add comment on quotes and column
2016-12-08 11:35:11 -05:00
Dag Wieers
c8a700834c
Performance improvement using in-operator for hash lookups
...
Just a small cleanup for the existing occurrences.
Using the in-operator for hash lookups is faster than using .has_key()
http://stackoverflow.com/questions/1323410/has-key-or-in
2016-12-08 11:35:09 -05:00
Andrew Gaffney
a8d80f7165
Fix bare variable references in docs
2016-12-08 11:35:06 -05:00
Michael Scherer
138aaa4ff3
Fix crypttab ( #3121 )
...
* Fix error in crypttab doc
* Use path type for file argument
This permit to make sure that $HOME and '~' are properly
expanded, even if in the case of crypttab, this might not make
a lot of sense
2016-12-08 11:34:57 -05:00
René Moser
4bfffe813b
fix typo in get_exception(), extends fix #2502 ( #2507 )
...
introduced with 9e277aabb033b3ec823b4a2db7c0f7e315eaaf0b
2016-12-08 11:34:26 -05:00
Andrey Arapov
ab791a79f5
system: crypttab: fix typo ( #2476 )
2016-12-08 11:34:25 -05:00
Chris Weber
891245c6f6
Fixed modules/system py files for 2.4 to 3.5 exceptions ( #2367 )
2016-12-08 11:34:20 -05:00
Michael Scherer
5d2063aa38
Remove the +x from crypttab and cronvar ( #2039 )
...
While this change nothing, it is better to enforce consistency
2016-12-08 11:34:06 -05:00
kubilus1
bcfab26d78
Unchecked index causes IndexError.
2016-12-08 11:34:04 -05:00
Brian Coca
50905e5673
fixed typos in cryptab, thanks @timw fixes #1176
2016-12-08 11:33:30 -05:00
Steve
fea8995df1
Fix bug #1105 - incorrect use of lstrip()
...
Remove only the literal prefix '/dev/mapper/' - not any of the characters
in '/dev/mapper/' - from the name param of the crypttab module.
2016-12-08 11:33:27 -05:00
Greg DeKoenigsberg
c65a612d1f
Changes to author formatting, remove emails
2016-12-08 11:32:51 -05:00
Brian Coca
2753cd186a
moar quotes
2016-12-08 11:32:39 -05:00
Matt Martz
42bca5398b
Use try/finally with file opening to close the file
2016-12-08 11:32:36 -05:00
Matt Martz
8bd5757720
Fix up modules that have python24 syntax error
2016-12-08 11:32:36 -05:00
Yuri Kunde Schlesner
c3940f16eb
crypttab: Fix parameter checking with state=absent
...
Only the `name` parameter is required when removing an entry, but the module tried to ensure at least one other parameter was set.
2016-12-08 11:32:32 -05:00
Toshio Kuratomi
03be4fc2cb
Don't know why but the 1.8.x branch didn't include the commit for crypttab.
...
Update documentation to show it is new in 1.9 as a result of that
oversight.
2016-12-08 11:32:28 -05:00
Steve
2cb1176bc2
New crypttab module for editing Linux /etc/crypttab file
2016-12-08 11:32:20 -05:00