diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-05-29 13:19:27 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2018-05-29 13:19:27 -0400 |
commit | 4ba4639b86edad7ec89a55a61b7d9075f92d2166 (patch) | |
tree | 6eed8aa30f265d75f001fb6af549b7e9547e91f1 /cloudinit/sources/DataSourceOpenNebula.py | |
parent | ae02c367ea8a6ce8a9e6d97047edf31decd335b2 (diff) | |
download | vyos-cloud-init-4ba4639b86edad7ec89a55a61b7d9075f92d2166.tar.gz vyos-cloud-init-4ba4639b86edad7ec89a55a61b7d9075f92d2166.zip |
pyflakes: fix unused variable references identified by pyflakes 2.0.0.
A newer version of pyflakes (2.0.0) was released.
It identifed some unused variables that version 1.6.0 did not identify.
The change here merely fixes those unused variables.
Diffstat (limited to 'cloudinit/sources/DataSourceOpenNebula.py')
-rw-r--r-- | cloudinit/sources/DataSourceOpenNebula.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceOpenNebula.py b/cloudinit/sources/DataSourceOpenNebula.py index d4a41116..16c10785 100644 --- a/cloudinit/sources/DataSourceOpenNebula.py +++ b/cloudinit/sources/DataSourceOpenNebula.py @@ -378,7 +378,7 @@ def read_context_disk_dir(source_dir, asuser=None): if asuser is not None: try: pwd.getpwnam(asuser) - except KeyError as e: + except KeyError: raise BrokenContextDiskDir( "configured user '{user}' does not exist".format( user=asuser)) |