Changeset fc36019 for fedd


Ignore:
Timestamp:
Jul 27, 2009 5:39:26 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
4ea1e22
Parents:
8f32dc0
Message:

deal properly with queries before the log has anything in it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_client.py

    r8f32dc0 rfc36019  
    14501450            if not status:
    14511451                sys.exit("No status in Info response??")
    1452             if not log:
    1453                 sys.exit("No log in Info response??")
    1454 
    1455             if len(log) > log_offset:
    1456                 print >>out, log[log_offset:],
    1457                 out.flush()
    1458                 log_offset = len(log)
     1452            if log:
     1453                if len(log) > log_offset:
     1454                    print >>out, log[log_offset:],
     1455                    out.flush()
     1456                    log_offset = len(log)
    14591457            if status == 'starting':
    14601458                time.sleep(update)
Note: See TracChangeset for help on using the changeset viewer.