From: Alfredo Deza Date: Fri, 4 Aug 2017 14:12:11 +0000 (-0400) Subject: ceph-volume lvm trigger should check for root X-Git-Tag: ses5-milestone10~3^2~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F16632%2Fhead;p=ceph.git ceph-volume lvm trigger should check for root Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/trigger.py b/src/ceph-volume/ceph_volume/devices/lvm/trigger.py index 87f58ebb7b41..7486bfaa9e04 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/trigger.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/trigger.py @@ -2,6 +2,7 @@ from __future__ import print_function import argparse from textwrap import dedent from ceph_volume.exceptions import SuffixParsingError +from ceph_volume import decorators from .activate import Activate @@ -30,6 +31,7 @@ class Trigger(object): def __init__(self, argv): self.argv = argv + @decorators.needs_root def main(self): sub_command_help = dedent(""" ** DO NOT USE DIRECTLY **