Typos

From PDP/Grid Wiki
Revision as of 10:58, 12 November 2009 by Fbernabe@nikhef.nl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

In the page 9 of the Pan Tutorial it is stated:

    ...
    '/hardware/disk/ide/0/capacity' = 64;
    '/hardware/disk/ide/0/boot' = true;
    '/hardware/disk/ide/0/label' = 'system';
    '/hardware/disk/ide/1/capacity' = 1024;
    '/hardware/disk/ide/1/boot' = false;
    ...

If the .tpl is compiled:

    panc --xml-style=text <.TPL_FILE>

The following error will show up:

    validation error [<PATH>/<.TPL_FILE>]
    record definition contains unexpected field(s): disk
    element path: '/hardware'
    type: 'hardware' [<PATH>/<.TPL_FILE>:26.17-32.1]
    type: 'root' [<PATH>/<.TPL_FILE>:33.13-35.1]
    path '/' bound to type root in [<PATH>/<.TPL_FILE>:36.12-36.15]

The filed 'disk' is not defined as part of the element 'hardware'; so it needs to be changed to 'disks':

    ...
    '/hardware/disks/ide/0/capacity' = 64;
    '/hardware/disks/ide/0/boot' = true;
    '/hardware/disks/ide/0/label' = 'system';
    '/hardware/disks/ide/1/capacity' = 1024;
    '/hardware/disks/ide/1/boot' = false;
    ...