Skip to content

Commit

Permalink
fix console bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Michio Honda committed Oct 28, 2020
1 parent bdcd7ee commit 479b63b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tm
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ class Tm(object):
return

userpass = ('root', 'calvin')
r = self.db.get(Query().node == args.node)
userpass = r['ipmipass'].split(',')
cmd = 'ipmitool -I lanplus -H {} -U {} -P {} sol activate'.format(
addrs[1], userpass[0], userpass[1])
subprocess.call(shlex.split(cmd))
Expand Down

0 comments on commit 479b63b

Please sign in to comment.