Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
060d51e8
Commit
060d51e8
authored
Jun 08, 2009
by
Leigh B. Stoller
Browse files
Make it an error to put a free node into node_admin mode; makes no
sense to do this since bootinfo will ignore it on free nodes.
parent
00b47611
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/node_admin.in
View file @
060d51e8
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
7
University of Utah and the Flux Group.
# Copyright (c) 2000-200
9
University of Utah and the Flux Group.
# All rights reserved.
#
use
strict
;
...
...
@@ -144,7 +144,10 @@ else {
die
("
*** $0:
\n
"
.
"
Node
$n
does not exist!
\n
");
}
if
(
!
$node
->
IsReserved
())
{
die
("
*** $0:
\n
"
.
"
Node
$n
is not reserved; reserve it first!
\n
");
}
if
(
$UID
&&
!
$this_user
->
IsAdmin
()
&&
!
$node
->
AccessCheck
(
$this_user
,
TB_NODEACCESS_LOADIMAGE
))
{
die
("
*** $0:
\n
"
.
...
...
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