Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F22374823
paas_docker.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
799 B
Referenced Files
None
Subscribers
None
paas_docker.py
View Options
# -*- coding: utf-8 -*-
# -------------------------------------------------------------
# Salt — PaaS Docker execution module
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-10-07
# Description: Functions related to data format conversions
# License: BSD-2-Clause
# -------------------------------------------------------------
def
get_image
(
default_image
,
args
):
"""
A function to output a pillar key in JSON.
State Example::
{% image = salt['paas_docker.get_image']("nasqueron/mysql", container) %}
"""
image
=
default_image
if
'image'
in
args
:
image
=
args
[
'image'
]
if
'version'
in
args
:
image
+=
":"
+
str
(
args
[
'version'
])
return
image
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Fri, Jan 30, 06:08 (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3394576
Default Alt Text
paas_docker.py (799 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment