From d238b4141273c8a59a29fef48a33d547b3968160 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Sat, 18 Aug 2012 13:33:36 -0500 Subject: bcfg2-info: Fix traceback when (mis)using profile Signed-off-by: Sol Jerome --- src/sbin/bcfg2-info | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sbin/bcfg2-info') diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index 77a9a4bcd..7e8558855 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -646,6 +646,9 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.BaseCore): if not have_profile: print("Profiling functionality not available.") return + if len(arg) == 0: + print("Usage: profile ") + return tracefname = tempfile.mktemp() p = profile.Profile() p.runcall(self.onecmd, arg) -- cgit v1.2.3-1-g7c22