diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-06-04 15:17:44 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-06-10 08:04:53 +0000 |
commit | ab90762d9a695118e7a89690c2f3b8c15e247a76 (patch) | |
tree | b4227a6977d6e85a1830d1d97fa8087d9140dc94 /extensions/fstab.configure | |
parent | 20dfa465dd7a06c41947002b82ebb318168c18b2 (diff) | |
download | definitions-ab90762d9a695118e7a89690c2f3b8c15e247a76.tar.gz |
Remove dependencies on morphlib and cliapp from deployment extensionsbaserock/adamcoldrick/remove-dependencies
This is done by either copying or reimplementing relevant parts
of morphlib/cliapp in extensions/writeexts.py, or by using
functionality from the Python standard library instead where
appropriate.
Note that this means that these extensions will require
"$definitions_checkout/extensions" in PYTHONPATH when they are
run.
This commit also updates VERSION to 6, since the PYTHONPATH
requirement means that this change is incompatible with old
versions of morph.
Change-Id: Iec6fa7e3c7219619ce55e18493e5c37c36e97816
Diffstat (limited to 'extensions/fstab.configure')
-rwxr-xr-x | extensions/fstab.configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/fstab.configure b/extensions/fstab.configure index b9154eee..3e67b585 100755 --- a/extensions/fstab.configure +++ b/extensions/fstab.configure @@ -20,9 +20,9 @@ import os import sys -import morphlib +import writeexts envvars = {k: v for (k, v) in os.environ.iteritems() if k.startswith('FSTAB_')} conf_file = os.path.join(sys.argv[1], 'etc/fstab') -morphlib.util.write_from_dict(conf_file, envvars) +writeexts.write_from_dict(conf_file, envvars) |