diff options
author | Chad Smith <chad.smith@canonical.com> | 2022-03-29 13:33:22 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 14:33:22 -0500 |
commit | 9f1876d7503f0878ae2f964b8d5703a3241df5db (patch) | |
tree | 2679bb3970fbdc80dd55967b0ca39b11eaef8d88 /cloudinit/stages.py | |
parent | 461d2631010e54cab1ccf26a331c708796dae06a (diff) | |
download | cloud-init-git-9f1876d7503f0878ae2f964b8d5703a3241df5db.tar.gz |
black: bump pinned version to 22.3.0 to avoid click dependency issues (#1357)
Black < 22.3.0 didn't handle a dropped internal attribute _unicodefun
from in more click package version 8.1.0. Due to issue
Issue: https://github.com/psf/black/issues/2964
This broke our CI and tox -e do_format targets with
cannot import name '_unicodefun' from 'click'.
Increment our pinned black to 22.3.0 and apply minor format
change rules.
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r-- | cloudinit/stages.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py index 3f17294b..fc8406a4 100644 --- a/cloudinit/stages.py +++ b/cloudinit/stages.py @@ -871,15 +871,12 @@ class Init(object): return def event_enabled_and_metadata_updated(event_type): - return ( - update_event_enabled( - datasource=self.datasource, - cfg=self.cfg, - event_source_type=event_type, - scope=EventScope.NETWORK, - ) - and self.datasource.update_metadata_if_supported([event_type]) - ) + return update_event_enabled( + datasource=self.datasource, + cfg=self.cfg, + event_source_type=event_type, + scope=EventScope.NETWORK, + ) and self.datasource.update_metadata_if_supported([event_type]) def should_run_on_boot_event(): return ( |