Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
jijisa
/
porch
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ca8d8232
authored
Apr 14, 2017
by
Heechul Kim
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed dhcp update bug when provisioning
parent
96f48a34
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
porch/api/machine/bizlogic.py
porch/api/machine/bizlogic.py
View file @
ca8d8232
...
@@ -126,7 +126,10 @@ def provision_machine(name):
...
@@ -126,7 +126,10 @@ def provision_machine(name):
s_msg
=
'ip should exist.'
s_msg
=
'ip should exist.'
return
(
False
,
s_msg
)
return
(
False
,
s_msg
)
# Add dhcp entry of host.
# Delete and Add dhcp entry of host.
s_cmd
=
"{} -r {}"
.
format
(
DHCPEDIT
,
name
)
log
.
debug
(
s_cmd
)
cmd
(
s_cmd
,
b_sudo
=
True
)
s_cmd
=
"{} {} {} {}"
.
format
(
DHCPEDIT
,
name
,
d
[
'mac'
],
d
[
'ip'
])
s_cmd
=
"{} {} {} {}"
.
format
(
DHCPEDIT
,
name
,
d
[
'mac'
],
d
[
'ip'
])
log
.
debug
(
s_cmd
)
log
.
debug
(
s_cmd
)
cmd
(
s_cmd
,
b_sudo
=
True
)
cmd
(
s_cmd
,
b_sudo
=
True
)
...
...
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