Skip to content

Commit

Permalink
INSIGHTS-1608
Browse files Browse the repository at this point in the history
import branch info from stdin if necessary
  • Loading branch information
Jeremy Crafts committed May 19, 2016
1 parent 0858883 commit df92b8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions etc/redhat-access-insights.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

Name: redhat-access-insights
Summary: Uploads Insights information to Red Hat on a periodic basis
Version: 1.0.10
Release: 2%{?dist}
Version: 1.0.11
Release: 0%{?dist}
Source0: https://github.com/redhataccess/insights-client/archive/redhat-access-insights-%{version}.tar.gz
Epoch: 0
License: GPLv2+
Expand Down
3 changes: 3 additions & 0 deletions redhat_access_insights/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ def collect_data_and_upload(config, options, rc=0):
('uploader.json' not in stdin_config or
'sig' not in stdin_config)):
raise ValueError
if ((options.from_file or options.from_stdin) and
'branch_info' in stdin_config and stdin_config['branch_info'] is not None):
branch_info = stdin_config['branch_info']
except:
logger.error('ERROR: Invalid config for %s! Exiting...' %
('--from-file' if options.from_file else '--from-stdin'))
Expand Down
2 changes: 1 addition & 1 deletion redhat_access_insights/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class InsightsConstants(object):
app_name = 'redhat-access-insights'
version = '1.0.10'
version = '1.0.11'
auth_method = 'BASIC'
log_level = 'DEBUG'
package_path = os.path.dirname(
Expand Down

0 comments on commit df92b8a

Please sign in to comment.