Fix a few rST buglets and some bunk whitespace

This commit is contained in:
Jeff Schroeder 2012-04-06 20:34:19 -07:00
parent 16b3b54f7d
commit d518dcb946
2 changed files with 12 additions and 10 deletions

View File

@ -1,6 +1,6 @@
'''
MySQL Grant Management
=====================
======================
The mysql_grants module is used to grant and revoke MySQL permissions.
The ``name`` you pass in purely symbolic and does not have anything to do
@ -8,11 +8,12 @@ with the grant itself.
The ``database`` parameter needs to specify a 'priv_level' in the same
specification as defined in the MySQL documentation:
- *
- *.*
- db_name.*
- db_name.tbl_name
- etc...
* \*
* \*.\*
* db_name.\*
* db_name.tbl_name
* etc...
.. code-block:: yaml

View File

@ -1,6 +1,7 @@
'''
Postgres Database Management
=========================
============================
The postgres_database module is used to create and manage Postgres databases, databases can be set
as either absent or present
@ -17,14 +18,14 @@ def present(name):
name
The name of the database to manage
'''
'''
ret = {'name': name,
'changes': {},
'result': True,
'comment': 'Database {0} is already present'.format(name)}
# check if database exists
if __salt__['postgres.db_exists'](name):
return ret
return ret
# The database is not present, make it!
if __salt__['postgres.db_create'](name):
@ -55,7 +56,7 @@ def absent(name):
ret['comment'] = 'Database {0} has been removed'.format(name)
ret['changes'][name] = 'Absent'
return ret
# fallback
ret['comment'] = 'Database {0} is not present, so it cannot be removed'.format(name)
return ret