Skip to content

Commit

Permalink
Merge pull request #168 from mesosphere/analytics_identify
Browse files Browse the repository at this point in the history
only identify a non-anonymous user
  • Loading branch information
jsancio committed May 13, 2015
2 parents 1a71460 + e59c39c commit c93ac0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions cli/dcoscli/analytics.py
Expand Up @@ -85,10 +85,7 @@ def segment_identify(conf):

if 'core.email' in conf:
data = {'userId': conf.get('core.email')}
else:
data = {'anonymousId': session_id}

_segment_request('identify', data)
_segment_request('identify', data)


def _segment_request(path, data):
Expand Down
4 changes: 2 additions & 2 deletions cli/dcoscli/config/main.py
Expand Up @@ -34,7 +34,7 @@
from dcos import (cmds, config, constants, emitting, http, jsonitem,
subcommand, util)
from dcos.errors import DCOSException
from dcoscli.analytics import segment_identify
from dcoscli import analytics

emitter = emitting.FlatEmitter()

Expand Down Expand Up @@ -162,7 +162,7 @@ def _set(name, value):

if (name == 'core.reporting' and python_value is True) or \
(name == 'core.email'):
segment_identify(toml_config)
analytics.segment_identify(toml_config)

_save_config_file(config_path, toml_config)

Expand Down

0 comments on commit c93ac0a

Please sign in to comment.