Changeset 8586 in genesis for nodes


Ignore:
Timestamp:
Oct 20, 2010, 10:50:50 PM (14 years ago)
Author:
rick
Message:

Compass direction name got dodgy formatted (empty), causing syntax highlighting of vim to get confused for example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nodes/genesis-to-yaml.pl

    r8342 r8586  
    123123                    $direction = 'None';
    124124                }
    125                 $tmp{'compass'} = $direction;
     125                if ($direction) {
     126                  $tmp{'compass'} = $direction;
     127                } else {
     128                  $tmp{'compass'} = 'None';
     129                }
    126130            } elsif ($key =~ /^gain$/i) {
    127131                $value =~ s/dbi//;
Note: See TracChangeset for help on using the changeset viewer.