• Jérome Perrin's avatar
    cli/info: better output of connection parameters · 0642e884
    Jérome Perrin authored
    before:
    
        $ slapos service info slapos-sr-testing
        Software Release URL: /srv/slapgrid/slappart15/srv/project/slapos/software/slapos-sr-testing/software.cfg
        Instance state: busy
        Instance parameters:
        {}
        Connection parameters:
        ("<?xml version='1.0' encoding='utf-8'?>\n"
         '<instance>\n'
         '  <parameter '
         'id="environment-script">/srv/slapgrid/slappart15/srv/runner/instance/slappart7/etc/slapos-local-development-environment.sh</parameter>\n'
    
    after:
    
        $ slapos service info slapos-sr-testing
        Software Release URL: /srv/slapgrid/slappart15/srv/project/slapos/software/slapos-sr-testing/software.cfg
        Instance state: busy
        Instance parameters:
        {}
        Connection parameters:
        {'environment-script': '/srv/slapgrid/slappart15/srv/runner/instance/slappart7/etc/slapos-local-development-environment.sh'}
    0642e884
util.py 15.3 KB