Skip to content

Commit

Permalink
Merge pull request #646 from nvgoldin/drop_group_warning
Browse files Browse the repository at this point in the history
cmd: drop group warning
  • Loading branch information
ovirt-infra authored Jul 26, 2017
2 parents ac55bb3 + 3f99244 commit 67f4759
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 67f4759

Please sign in to comment.