File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,8 +130,6 @@ Requires: perl
130130Requires: libvirt-python
131131Requires: qemu-img
132132Requires: qemu-kvm
133- Requires: epel-release
134- Requires: aria2
135133Provides: cloud-agent
136134Obsoletes: cloud-agent < 4.1.0
137135Obsoletes: cloud-agent-libs < 4.1.0
Original file line number Diff line number Diff line change @@ -111,8 +111,6 @@ Requires: perl
111111Requires: libvirt-python
112112Requires: qemu-img
113113Requires: qemu-kvm
114- Requires: epel-release
115- Requires: aria2
116114Provides: cloud-agent
117115Group: System Environment/Libraries
118116%description agent
Original file line number Diff line number Diff line change 258258 $form . find ( '.form-item[rel=rootDiskControllerTypeKVM]' ) . hide ( ) ;
259259 $form . find ( '.form-item[rel=directdownload]' ) . hide ( ) ;
260260
261- if ( isAdmin ( ) )
261+ if ( isAdmin ( ) ) {
262262 $form . find ( '.form-item[rel=xenserverToolsVersion61plus]' ) . css ( 'display' , 'inline-block' ) ;
263+ }
263264 } else if ( $ ( this ) . val ( ) == "KVM" ) {
264265 $form . find ( '.form-item[rel=rootDiskControllerType]' ) . hide ( ) ;
265266 $form . find ( '.form-item[rel=nicAdapterType]' ) . hide ( ) ;
266267 $form . find ( '.form-item[rel=keyboardType]' ) . hide ( ) ;
267268 $form . find ( '.form-item[rel=xenserverToolsVersion61plus]' ) . hide ( ) ;
268269 $form . find ( '.form-item[rel=rootDiskControllerTypeKVM]' ) . css ( 'display' , 'inline-block' ) ;
269270 $form . find ( '.form-item[rel=xenserverToolsVersion61plus]' ) . css ( 'display' , 'inline-block' ) ;
270- $form . find ( '.form-item[rel=directdownload]' ) . css ( 'display' , 'inline-block' ) ;
271+ if ( isAdmin ( ) ) {
272+ $form . find ( '.form-item[rel=directdownload]' ) . css ( 'display' , 'inline-block' ) ;
273+ }
271274 } else {
272275 $form . find ( '.form-item[rel=rootDiskControllerType]' ) . hide ( ) ;
273276 $form . find ( '.form-item[rel=nicAdapterType]' ) . hide ( ) ;
You can’t perform that action at this time.
0 commit comments