Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Jan 12, 2024
1 parent 0cdce8f commit dc1d126
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 0.2.21dev

* [Fix] Fix error when determining if telemetry call was from a cloud user

## 0.2.20 (2024-01-12)

* [Feature] Obtain system info once for faster initialization
Expand Down
2 changes: 1 addition & 1 deletion src/ploomber_core/telemetry/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def is_cloud_user():
returns True/False accordingly.
"""
settings = UserSettings()
return settings.cloud_key
return settings.cloud_key is not None


def email_registered():
Expand Down
22 changes: 11 additions & 11 deletions tests/telemetry/test_telemetry_log_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def add(x, y):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down Expand Up @@ -108,7 +108,7 @@ def add(self, x, y):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down Expand Up @@ -147,7 +147,7 @@ def add(x, y=1):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down Expand Up @@ -186,7 +186,7 @@ def add(x, y=1):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down Expand Up @@ -228,7 +228,7 @@ def add(x, y=1):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down Expand Up @@ -288,7 +288,7 @@ def substract(self, x, y):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand All @@ -313,7 +313,7 @@ def substract(self, x, y):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down Expand Up @@ -355,7 +355,7 @@ def do_stuff(self):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down Expand Up @@ -394,7 +394,7 @@ def do_stuff():
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down Expand Up @@ -433,7 +433,7 @@ def do_stuff(a, *args):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down Expand Up @@ -472,7 +472,7 @@ def do_stuff(a, **kwargs):
"version": "0.1",
"package_name": "somepackage",
"docker_container": False,
"cloud": None,
"cloud": ANY,
"email": None,
"os": ANY,
"environment": ANY,
Expand Down

0 comments on commit dc1d126

Please sign in to comment.