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
17ce6a7e
Commit
17ce6a7e
authored
Nov 27, 2001
by
Robert Ricci
Browse files
Add \n to the end of a warn() to prevent the line-number output.
parent
f557ea3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/power.in
View file @
17ce6a7e
...
...
@@ -105,7 +105,7 @@ print "Checking authorization for '$user'\n" if $verbose;
my
%outlets
=
();
foreach
my
$node
(
@machines
)
{
if
(
!
TBNodeAccessCheck
(
$user
,
TB_NODEACCESS_POWERCYCLE
,
$node
))
{
warn
"
You are not authorized to control
$node
. Skipping...
";
warn
"
You are not authorized to control
$node
. Skipping...
\n
";
next
;
}
...
...
@@ -183,7 +183,7 @@ foreach my $power_id (keys %outlets) {
if
(
$type
eq
"
APC
")
{
my
$device
=
new
snmpit_apc
(
$IP
,
$verbose
);
if
(
!
defined
$device
)
{
warn
"
Unable to contact controller for
$nodestr
. Skipping..
\n
";
warn
"
Unable to contact controller for
$nodestr
. Skipping..
.
\n
";
next
;
}
else
{
print
"
Calling device->power(
$op
,
@outlets
)
\n
"
...
...
Write
Preview
Supports
Markdown
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