Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
937f1b80
Commit
937f1b80
authored
May 15, 2012
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add image hash support.
parent
c202f96a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
backend/editimageid.in
backend/editimageid.in
+4
-2
backend/newimageid_ez.in
backend/newimageid_ez.in
+1
-0
No files found.
backend/editimageid.in
View file @
937f1b80
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-201
1
University of Utah and the Flux Group.
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# All rights reserved.
#
use
English
;
...
...
@@ -140,6 +140,7 @@ my %xmlfields =
"
path
"
=>
["
path
",
$SLOT_OPTIONAL
],
"
mbr_version
",
=>
["
mbr_version
",
$SLOT_OPTIONAL
],
"
mtype_*
"
=>
["
mtype
",
$SLOT_OPTIONAL
],
"
hash
",
=>
["
hash
",
$SLOT_ADMINONLY
],
);
#
# Need a list of node types. We join this over the nodes table so that
...
...
@@ -252,7 +253,8 @@ foreach $key (keys(%{ $xmlparse->{'attribute'} })) {
}
}
if
(
!
$wild
)
{
$errors
{
$key
}
=
"
Unknown attribute
";
# Silently ignore, and delete.
delete
(
$xmlfields
{
$key
});
next
;
# foreach $key
}
}
...
...
backend/newimageid_ez.in
View file @
937f1b80
...
...
@@ -162,6 +162,7 @@ my %xmlfields =
"
global
",
=>
["
global
",
$SLOT_ADMINONLY
,
0
],
"
mbr_version
",
=>
["
mbr_version
",
$SLOT_OPTIONAL
],
"
reboot_waittime
",
=>
["
reboot_waittime
",
$SLOT_ADMINONLY
],
"
hash
",
=>
["
hash
",
$SLOT_ADMINONLY
],
);
#
...
...
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