From 3f99244a525bb1c6c42bf081126e7f6bbf6828a7 Mon Sep 17 00:00:00 2001 From: Nadav Goldin Date: Wed, 26 Jul 2017 10:10:12 +0300 Subject: [PATCH] cmd: drop group warning Don't see any real usage for it anymore, especially when you can install directly from pip without Lago group. --- lago/cmd.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lago/cmd.py b/lago/cmd.py index bd2b21ba..cfe6f71e 100755 --- a/lago/cmd.py +++ b/lago/cmd.py @@ -21,7 +21,6 @@ from __future__ import print_function import argparse -import grp import logging import os import pkg_resources @@ -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'] @@ -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(