From fa7358fffac0680ffe3a3751f4ffa13b41fd2f75 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 7 Oct 2004 13:37:19 +0000 Subject: add profile/image assertion support (Logical change 1.77) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@378 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/sbin') diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 6dbb169ef..66d080740 100644 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -143,7 +143,7 @@ class ClientState(object): if __name__ == '__main__': # parse command line options options = {'v':'verbose','q':'quick', 'd':'debug', 'n':'dryrun', 'B':'build', 'p':'paranoid'} - doptions = {'b':'bundle', 'f':'file', 'c':'cache'} + doptions = {'b':'bundle', 'f':'file', 'c':'cache', 'p':'profile', 'i':'image'} setup = dgetopt(argv[1:], options, doptions) print setup @@ -166,8 +166,11 @@ if __name__ == '__main__': if setup['verbose'] : print tostring(cpd) comm.SendMessage(h, tostring(cpd)) r = comm.RecvMessage(h) + msg = Element("get-config") + if setup['profile']: msg.attrib['profile'] = setup['profile'] + if setup['image']: msg.attrib['image'] = setup['image'] # get config - comm.SendMessage(h, "") + comm.SendMessage(h, tostring(msg)) r = comm.RecvMessage(h) if setup['cache']: try: -- cgit v1.2.3-1-g7c22