Skip to content

Commit

Permalink
Fix release 1.0.2
Browse files Browse the repository at this point in the history
- Cathed exception when directory for local user modules does not exist.
- 'main' branch is renamed to 'latest'
- Bump version to 1.0.2
  • Loading branch information
shipilovds committed May 19, 2022
1 parent 99369f2 commit 03a2983
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

NAMESPACE = shipilovds
NAME = workstation
VERSION = 1.0.1
VERSION = 1.0.2


lint:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ This colection created to store some modules I wrote to setup my workstation.

| Name | Description |
|------|-------------|
| [shipilovds.workstation.gsettings](https://github.com/shipilovds/workstation/blob/main/docs/shipilovds.workstation.gsettings.md) | Gnome applications settings management |
| [shipilovds.workstation.gnome_extension](https://github.com/shipilovds/workstation/blob/main/docs/shipilovds.workstation.gnome_extension.md) | Gnome shell extensions management |
| [shipilovds.workstation.gsettings](https://github.com/shipilovds/workstation/blob/latest/docs/shipilovds.workstation.gsettings.md) | Gnome applications settings management |
| [shipilovds.workstation.gnome_extension](https://github.com/shipilovds/workstation/blob/latest/docs/shipilovds.workstation.gnome_extension.md) | Gnome shell extensions management |

> NOTE: I`ve made some cool stuff to make "[docs.ansible.com](https://docs.ansible.com/ansible/latest/)"-like modules documentation. Generated pages you can find on the links above.
> Template file and tool itself:
> * [Template](https://github.com/shipilovds/workstation/blob/main/helpers/docs_template.j2)
> * [Tool](https://github.com/shipilovds/workstation/blob/main/helpers/generate_md_docs.py)
> * [Template](https://github.com/shipilovds/workstation/blob/latest/helpers/docs_template.j2)
> * [Tool](https://github.com/shipilovds/workstation/blob/latest/helpers/generate_md_docs.py)
## Ansible version compatibility

Expand Down Expand Up @@ -50,7 +50,7 @@ collections:
### PIP
To get pip package with modules just type `pip install git+https://github.com/shipilovds/workstation@main`
To get pip package with modules just type `pip install git+https://github.com/shipilovds/workstation@latest`

## Using this collection

Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: 'shipilovds'
name: 'workstation'
version: '1.0.1'
version: '1.0.2'
readme: 'README.md'
authors:
- 'Denis Shipilov @shipilovds <[email protected]>'
Expand Down
13 changes: 9 additions & 4 deletions plugins/modules/gnome_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,15 @@ def _check_if_installed(self):
installed = False
installed_extensions = []
for src in GNOME_EXTENSION_DIRS:
src = expanduser(src)
for item in listdir(src):
if isdir(join(src, item)):
installed_extensions.append(item)
try:
src = expanduser(src)
for item in listdir(src):
if isdir(join(src, item)):
installed_extensions.append(item)
except FileNotFoundError:
# It means that local user extensions does not exist yet
# A little dirty hack: do nothing here
pass
if self.uuid in installed_extensions:
installed = True

Expand Down

0 comments on commit 03a2983

Please sign in to comment.