Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
774f7e37
Commit
774f7e37
authored
May 28, 2015
by
Matt Bruzek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed a comment for flake8 reasons.
parent
f261702e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
hooks.py
cluster/juju/charms/trusty/kubernetes-master/hooks/hooks.py
+3
-8
No files found.
cluster/juju/charms/trusty/kubernetes-master/hooks/hooks.py
View file @
774f7e37
...
@@ -102,17 +102,11 @@ def config_changed():
...
@@ -102,17 +102,11 @@ def config_changed():
# write out the .broken_build file while this block is executing.
# write out the .broken_build file while this block is executing.
with
check_sentinel
(
broken_build
)
as
last_build_failed
:
with
check_sentinel
(
broken_build
)
as
last_build_failed
:
print
(
'Last build failed: '
,
last_build_failed
)
print
(
'Last build failed: '
,
last_build_failed
)
# Rebuild if
the
current version is different or last build failed.
# Rebuild if current version is different or last build failed.
if
current_branch
!=
version
or
last_build_failed
:
if
current_branch
!=
version
or
last_build_failed
:
installer
.
build
(
branch
)
installer
.
build
(
branch
)
if
not
output_path
.
exists
():
if
not
output_path
.
isdir
():
broken_build
.
touch
()
broken_build
.
touch
()
else
:
print
(
'Notifying minions of verison '
+
version
)
# Notify the minions of a version change.
for
r
in
hookenv
.
relation_ids
(
'minions-api'
):
hookenv
.
relation_set
(
r
,
version
=
version
)
print
(
'Done notifing minions of version '
+
version
)
# Create the symoblic links to the right directories.
# Create the symoblic links to the right directories.
installer
.
install
()
installer
.
install
()
...
@@ -171,6 +165,7 @@ def notify_minions():
...
@@ -171,6 +165,7 @@ def notify_minions():
hostname
=
hookenv
.
unit_private_ip
(),
hostname
=
hookenv
.
unit_private_ip
(),
port
=
8080
,
port
=
8080
,
version
=
config
[
'version'
])
version
=
config
[
'version'
])
print
(
"Notified minions of version "
+
config
[
'version'
])
def
get_template_data
():
def
get_template_data
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment