Skip to content

Instantly share code, notes, and snippets.

View Inveracity's full-sized avatar

Christopher Baklid Inveracity

View GitHub Profile
=================================================== test session starts ====================================================
platform linux -- Python 3.9.1, pytest-5.4.1, py-1.10.0, pluggy-0.13.1 -- /vagrant/_own_projects/rethinkdb-python/.venv/bin/python
cachedir: .pytest_cache
rootdir: /vagrant/_own_projects/rethinkdb-python, inifile: pytest.ini
plugins: cov-2.8.1, tornasync-0.6.0.post2, trio-0.5.2
collected 136 items
tests/test_date_and_time.py::TestNow::test_get_now PASSED [ 0%]
tests/test_handshake.py::TestLocalThreadCache::test_initialization PASSED [ 1%]
{"schemaVersion":1,"label":"rethinkdb-python","message":"2.4.8","color":"blueviolet"}
{"schemaVersion":1,"label":"Python","message":"3.9 | 3.8","color":"blue"}
{"schemaVersion":1,"label":"coverage","message":"93%","color":"green"}
$ salt-call hubble.top -l debug
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/hubblestack.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/hubblestack.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/minion.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/minion.conf
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: master
[DEBUG ] Configuration file path: /etc/salt/minion
import asyncio
from aio_pika import connect, Message
async def main(future):
USERNAME = 'myuser'
PASSWORD = 'mypass'
HOST = 'localhost'
PORT = 5672
QUEUE = 'text'
ROUTING_KEY = 'example.text'
#grains in yaml format
dictkey:
- "list element 0"
- "list element 1"
- "list element 2"
#jinja2
{% set myitem = grains['dictkey'][1] %}
some state:
my.state: