Skip to content

Commit

Permalink
rebased + pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Oloremo authored and dwoz committed Sep 30, 2020
1 parent 885e876 commit 6436a3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions salt/modules/sdb.py
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
"""
Module for Manipulating Data via the Salt DB API
================================================
"""
from __future__ import absolute_import, print_function, unicode_literals


# Import salt libs
import salt.utils.sdb
Expand Down
8 changes: 3 additions & 5 deletions salt/utils/sdb.py
@@ -1,11 +1,9 @@
# -*- coding: utf-8 -*-
"""
Basic functions for accessing the SDB interface
For configuration options, see the docs for specific sdb
modules.
"""
from __future__ import absolute_import, print_function, unicode_literals

# Import python libs
import random
Expand Down Expand Up @@ -55,7 +53,7 @@ def sdb_get(uri, opts, utils=None, strict=False):
else:
return uri

fun = "{0}.get".format(profile["driver"])
fun = "{}.get".format(profile["driver"])
query = uri[indx + 1 :]

loaded_db = salt.loader.sdb(opts, fun, utils=utils)
Expand Down Expand Up @@ -86,7 +84,7 @@ def sdb_set(uri, value, opts, utils=None):
if "driver" not in profile:
return False

fun = "{0}.set".format(profile["driver"])
fun = "{}.set".format(profile["driver"])
query = uri[indx + 1 :]

loaded_db = salt.loader.sdb(opts, fun, utils=utils)
Expand Down Expand Up @@ -117,7 +115,7 @@ def sdb_delete(uri, opts, utils=None):
if "driver" not in profile:
return False

fun = "{0}.delete".format(profile["driver"])
fun = "{}.delete".format(profile["driver"])
query = uri[indx + 1 :]

loaded_db = salt.loader.sdb(opts, fun, utils=utils)
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/modules/test_sdb.py
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
"""
:codeauthor: Jayesh Kariya <jayeshk@saltstack.com>
"""


# Import Python Libs
from __future__ import absolute_import, print_function, unicode_literals

# Import Salt Libs
import salt.modules.sdb as sdb
Expand Down

0 comments on commit 6436a3e

Please sign in to comment.