Skip to content

Commit

Permalink
Fixes reference issues in pixie. Fixes view crash on puck when no ip …
Browse files Browse the repository at this point in the history
…assigned.
  • Loading branch information
masom committed Feb 28, 2012
1 parent 8068752 commit 4610449
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion client/pixie/lib/puck.py
Expand Up @@ -223,7 +223,7 @@ def updateStatus(self):
'id': self._vm.id,
'status': self._vm.status
}
self._client.put('status', self.vm.id, data)
self._client.put('status', self._vm.id, data)

def updateConfig(self):
'''
Expand Down
22 changes: 12 additions & 10 deletions server/views/virtual_machines/running.html
Expand Up @@ -26,16 +26,18 @@ <h2>My Current Virtual Machines</h2>
<tr>
<td>${i.name}</td>
<td>
<ul>
% for addr in i.addresses['private']:
% if not addr['fixed']:
<%
public_ip = addr['addr']
%>
<li>${addr['addr']}</li>
% endif
% endfor
</ul>
% if i.addresses:
<ul>
% for addr in i.addresses['private']:
% if not addr['fixed']:
<%
public_ip = addr['addr']
%>
<li>${addr['addr']}</li>
% endif
% endfor
</ul>
% endif
</td>
<td>${i.status}</td>
<td>
Expand Down
7 changes: 2 additions & 5 deletions setup/setup.sh
Expand Up @@ -27,7 +27,7 @@ while read file; do
done < index
rm index

rpm --initdb
/usr/local/bin/rpm --initdb
########################
#
# RPM REGISTRATION
Expand Down Expand Up @@ -56,10 +56,7 @@ pkg_info | /usr/local/bin/python registerports.py
# RPM INSTALLATION
#
########################
rpm -ivh *.rpm

tar -xzf pixie.tar.gz -C /usr/local/
cp pixie.conf /usr/local/etc/pixie.conf
/usr/local/bin/rpm -ivh *.rpm

cd $START
rm -rf $DEST
Expand Down

0 comments on commit 4610449

Please sign in to comment.