Menu

#224 default example plugin doesnt appear to work

closed
None
2015-05-17
2015-05-07
Alan buxey
No

in the docs we have :

reports:

  • tag: power_inventory
    category: Device
    label: 'Power Supply Inventory'
    columns:
    • {name: 'Name'}
    • {ps1_type: 'PS1 Type'}
    • {ps1_status: 'PS1 Status'}
      query: |
      SELECT d.name, d.ps1_type, d.ps1_status
      FROM device d
      ORDER BY name

this blows up the deamon:

BEGIN failed--compilation aborted at /home/netdisco/perl5/lib/perl5/App/Netdisco/Configuration.pm line 4.
Compilation failed in require at /home/netdisco/perl5/lib/perl5/App/Netdisco.pm line 8.
BEGIN failed--compilation aborted at /home/netdisco/perl5/lib/perl5/App/Netdisco.pm line 8.
Compilation failed in require at /home/netdisco/perl5/bin/netdisco-web-fg line 26.
BEGIN failed--compilation aborted at /home/netdisco/perl5/bin/netdisco-web-fg line 26.
Error while loading /home/netdisco/perl5/bin/netdisco-web-fg: Unable to parse the configuration file: /home/netdisco/environments/deployment.yml: YAML::XS::Load Error: The problem:

did not find expected key

Discussion

  • Oliver Gorwits

    Oliver Gorwits - 2015-05-07
    • status: new --> stalled
    • assigned_to: Oliver Gorwits
     
  • Oliver Gorwits

    Oliver Gorwits - 2015-05-07

    Hi Alan,

    The most common cause of config parse failures is broken whitespace (YAML is a fussy specification). Make sure there's no leading whitespace before the reports: key, and that the indenting is correct and doesn't use TAB characters.

    If you still have an issue, please would you paste your config somewhere with a fixed width font such as pastie.org so that I can take a look?

    regards,
    oliver.

     
  • Oliver Gorwits

    Oliver Gorwits - 2015-05-17
    • status: stalled --> closed
     
MongoDB Logo MongoDB