mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #54537 from juju-solutions/bug/fix-except
Automatic merge from submit-queue (batch tested with PRs 54537, 54558). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Address lint errors on Juju charms **What this PR does / why we need it**: Two minor code style errors were recently introduced to the Juju charms of CDK. This blocks their build. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: **Special notes for your reviewer**: **Release note**: ```NONE ```
This commit is contained in:
commit
d873607349
@ -703,7 +703,7 @@ def ceph_storage(ceph_admin):
|
||||
cmd = ['kubectl', 'apply', '-f', '/tmp/ceph-secret.yaml']
|
||||
check_call(cmd)
|
||||
os.remove('/tmp/ceph-secret.yaml')
|
||||
except:
|
||||
except: # NOQA
|
||||
# the enlistment in kubernetes failed, return and prepare for re-exec
|
||||
return
|
||||
|
||||
|
@ -37,7 +37,7 @@ from charms.kubernetes.flagmanager import FlagManager
|
||||
from charms.reactive.helpers import data_changed, any_file_changed
|
||||
from charms.templating.jinja2 import render
|
||||
|
||||
from charmhelpers.core import hookenv, unitdata
|
||||
from charmhelpers.core import hookenv
|
||||
from charmhelpers.core.host import service_stop, service_restart
|
||||
from charmhelpers.contrib.charmsupport import nrpe
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user