Skip to content

Commit

Permalink
Merge pull request #13 from xylar/fix_web_portal_bug
Browse files Browse the repository at this point in the history
Make "web_portal" section if it doesn't exist
  • Loading branch information
xylar authored Oct 15, 2021
2 parents 7782c86 + 629c776 commit 767bd38
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "mache" %}
{% set version = "1.1.0" %}
{% set version = "1.1.1" %}

package:
name: {{ name|lower }}
Expand Down
2 changes: 1 addition & 1 deletion mache/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from mache.machine_info import MachineInfo
from mache.discover import discover_machine

__version_info__ = (1, 1, 0)
__version_info__ = (1, 1, 1)
__version__ = '.'.join(str(vi) for vi in __version_info__)
2 changes: 2 additions & 0 deletions mache/machine_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def __init__(self, machine=None):
self.web_portal_url = None

self.username = pwd.getpwuid(os.getuid()).pw_name
if not self.config.has_section('web_portal'):
self.config.add_section('web_portal')
self.config.set('web_portal', 'username', self.username)

def __str__(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = mache
version = 1.1.0
version = 1.1.1
author = Xylar Asay-Davis
author_email = [email protected]
description = A package for providing configuration data relate to E3SM supported machines
Expand Down

0 comments on commit 767bd38

Please sign in to comment.