Skip to content

Commit

Permalink
cmd: drop group warning
Browse files Browse the repository at this point in the history
Don't see any real usage for it anymore, especially when you can install
directly from pip without Lago group.
  • Loading branch information
nvgoldin committed Jul 26, 2017
1 parent ac55bb3 commit 3f99244
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lago/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from __future__ import print_function

import argparse
import grp
import logging
import os
import pkg_resources
Expand Down Expand Up @@ -899,11 +898,6 @@ def create_parser(cli_plugins, out_plugins):
return parser


def check_group_membership():
if 'lago' not in [grp.getgrgid(gid).gr_name for gid in os.getgroups()]:
warnings.warn('current session does not belong to lago group.')


def main():
cli_plugins = lago.plugins.load_plugins(
lago.plugins.PLUGIN_ENTRY_POINTS['cli']
Expand Down Expand Up @@ -936,8 +930,6 @@ def main():
else:
warnings.formatwarning = lambda message, *args, **kwargs: message

check_group_membership()

args.out_format = out_plugins[args.out_format]
if args.prefix_path:
warnings.warn(
Expand Down

0 comments on commit 3f99244

Please sign in to comment.