[salt-formulas] opendaylight: Fix noproxy case 71/59471/1 opnfv-6.2.1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 2 Jul 2018 19:30:21 +0000 (21:30 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 2 Jul 2018 19:31:22 +0000 (19:31 +0000)
Change-Id: I192cda7412151b2974e1bcd79a51f7593acace5d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit b52c4df4061fd7a51aad94f144bb1326fa8a8b5a)

mcp/salt-formulas/opendaylight/server.sls

index 71f8982..bc2d4ef 100644 (file)
@@ -13,6 +13,7 @@
 opendaylight_repo_key:
   cmd.run:
     - name: "apt-key adv --keyserver keyserver.ubuntu.com --recv 44C05248"
+{%- if system.proxy is defined and system.proxy.pkg is defined %}
     - env:
 {%- if system.proxy.pkg.http is defined %}
       - http_proxy: {{ system.proxy.pkg.http }}
@@ -20,6 +21,7 @@ opendaylight_repo_key:
 {%- if system.proxy.pkg.https is defined %}
       - https_proxy: {{ system.proxy.pkg.https }}
 {%- endif %}
+{%- endif %}
 
 opendaylight_repo:
   pkgrepo.managed: