Revision 700c5bf5 util/vm/build.py

View differences:

util/vm/build.py
685 685
       memory: memory size in MB"""
686 686
    global LogFile, Zip
687 687
    start = time()
688
    date = strftime( '%y%m%d-%H-%M-%S', localtime())
688
    lstart = localtime()
689
    date = strftime( '%y%m%d-%H-%M-%S', lstart)
690
    ovfdate = strftime( '%y%m%d', lstart )
689 691
    dir = 'mn-%s-%s' % ( flavor, date )
690 692
    try:
691 693
        os.mkdir( dir )
......
713 715
        log( '* Removing qcow2 volume', volume )
714 716
        os.remove( volume )
715 717
    log( '* Converted VM image stored as', abspath( vmdk ) )
716
    ovfname = 'mininet-%s-%s' % ( version, OSVersion( flavor ) )
718
    ovfname = 'mininet-%s-%s-%s' % ( version, ovfdate, OSVersion( flavor ) )
717 719
    ovf = generateOVF( diskname=vmdk, disksize=size, name=ovfname )
718 720
    log( '* Generated OVF descriptor file', ovf )
719 721
    if Zip:

Also available in: Unified diff