X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-console.git/blobdiff_plain/e2439d9b66d0289407357977f4c6e97b7888a908..bddfbaa249b0b36a6d743c264b6604a8854ccfd0:/files/usr/sbin/sipb-xen-update-conserver diff --git a/files/usr/sbin/sipb-xen-update-conserver b/files/usr/sbin/sipb-xen-update-conserver index 081bb1c..b7f3bd8 100755 --- a/files/usr/sbin/sipb-xen-update-conserver +++ b/files/usr/sbin/sipb-xen-update-conserver @@ -23,13 +23,13 @@ if __name__ == '__main__': hostname = socket.getfqdn().lower() realm = config.authn[0].realm principal = 'host/'+hostname+'@'+realm - config = '\n'.join('console %s { master %s; }' % (vm, hostname) - for vm in live_vms()) + conftext = '\n'.join('console %s { master %s; }' % (vm, hostname) + for vm in live_vms()) f = open('/etc/conserver/sipb-xen-consoles.cf', 'w') - f.write(config) + f.write(conftext) f.close() reload_conserver() subprocess.call(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab', principal]) - subprocess.call(['/usr/bin/remctl', 'sipb-xen-console.mit.edu', - 'console', 'update', config]) + subprocess.call(['/usr/bin/remctl', config.console.hostname, + 'console', 'update', conftext])